mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #34380 -- Allowed specifying a default URL scheme in forms.URLField.
This also deprecates "http" as the default scheme.
This commit is contained in:
parent
070cbac0db
commit
7bbbadc693
10 changed files with 132 additions and 20 deletions
|
@ -1071,8 +1071,18 @@ For each field, we describe the default widget used if you don't specify
|
|||
given value is a valid URL.
|
||||
* Error message keys: ``required``, ``invalid``
|
||||
|
||||
Has the optional arguments ``max_length``, ``min_length``, and
|
||||
``empty_value`` which work just as they do for :class:`CharField`.
|
||||
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"``.
|
||||
|
||||
.. versionchanged:: 5.0
|
||||
|
||||
The ``assume_scheme`` argument was added.
|
||||
|
||||
.. deprecated:: 5.0
|
||||
|
||||
The default value for ``assume_scheme`` will change from ``"http"`` to
|
||||
``"https"`` in Django 6.0.
|
||||
|
||||
``UUIDField``
|
||||
-------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue