summaryrefslogtreecommitdiff
path: root/docs/ref/forms/fields.txt
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2023-11-24 23:00:17 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-11-25 18:53:34 +0100
commit4c74dff75910ba500ce232c30742c7dfe3bcc4ea (patch)
tree43243955853681267fdc56adb1a5831c5a0d49c6 /docs/ref/forms/fields.txt
parent4d33816ca6a8e5e9a87cfabd9dcd83e416b4f814 (diff)
[5.0.x] Refs #34380 -- Improved docs for forms.URLField.assume_scheme.
Backport of 0203771b626c27c1af24cdeb0e425ccca3d19ad5 from main
Diffstat (limited to 'docs/ref/forms/fields.txt')
-rw-r--r--docs/ref/forms/fields.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt
index 91047ea758..6eca7234fc 100644
--- a/docs/ref/forms/fields.txt
+++ b/docs/ref/forms/fields.txt
@@ -1140,12 +1140,16 @@ For each field, we describe the default widget used if you don't specify
* Error message keys: ``required``, ``invalid``
Has the optional arguments ``max_length``, ``min_length``, ``empty_value``
- which work just as they do for :class:`CharField`, and ``assume_scheme``
- that defaults to ``"http"``.
+ which work just as they do for :class:`CharField`, and one more argument:
- .. versionchanged:: 5.0
+ .. attribute:: assume_scheme
+
+ .. versionadded:: 5.0
- The ``assume_scheme`` argument was added.
+ The scheme assumed for URLs provided without one. Defaults to
+ ``"http"``. For example, if ``assume_scheme`` is ``"https"`` and the
+ provided value is ``"example.com"``, the normalized value will be
+ ``"https://example.com"``.
.. deprecated:: 5.0