mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Refs #34380 -- Improved docs for forms.URLField.assume_scheme.
This commit is contained in:
parent
978680db22
commit
0203771b62
2 changed files with 10 additions and 6 deletions
|
@ -1141,12 +1141,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
|
||||
|
||||
The ``assume_scheme`` argument was added.
|
||||
.. versionadded:: 5.0
|
||||
|
||||
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue