diff options
| author | Coen van der Kamp <coen@fourdigits.nl> | 2023-03-08 20:12:34 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-04-28 06:58:10 +0200 |
| commit | 7bbbadc69383f0a2b99253e153b974f8783e876d (patch) | |
| tree | f0e4e8a38904aa9772fdae066dbda9dfd41d08b6 /docs/ref/forms | |
| parent | 070cbac0dbf6a09b55aad322137ab168b75bf56b (diff) | |
Fixed #34380 -- Allowed specifying a default URL scheme in forms.URLField.
This also deprecates "http" as the default scheme.
Diffstat (limited to 'docs/ref/forms')
| -rw-r--r-- | docs/ref/forms/fields.txt | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index f9a07b1626..4084ae78d5 100644 --- a/docs/ref/forms/fields.txt +++ b/docs/ref/forms/fields.txt @@ -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`` ------------- |
