From 7bbbadc69383f0a2b99253e153b974f8783e876d Mon Sep 17 00:00:00 2001 From: Coen van der Kamp Date: Wed, 8 Mar 2023 20:12:34 +0100 Subject: Fixed #34380 -- Allowed specifying a default URL scheme in forms.URLField. This also deprecates "http" as the default scheme. --- docs/ref/forms/fields.txt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'docs/ref/forms') 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`` ------------- -- cgit v1.3