mirror of
https://github.com/django/django.git
synced 2025-05-31 03:06:29 +00:00
[5.0.x] Fixed #25595 -- Doc'd that URLValidator rejects file:// URIs without a host.
Backport of 7326513a8f5d4d4e0aeec28540f9451b939b1dda from main
This commit is contained in:
parent
ef23305a19
commit
710ca57681
@ -188,6 +188,12 @@ to, or in lieu of custom ``field.clean()`` methods.
|
||||
|
||||
.. _valid URI schemes: https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml
|
||||
|
||||
.. warning::
|
||||
|
||||
Values starting with ``file:///`` will not pass validation even
|
||||
when the ``file`` scheme is provided. Valid values must contain a
|
||||
host.
|
||||
|
||||
.. attribute:: max_length
|
||||
|
||||
.. versionadded:: 3.2.20
|
||||
|
Loading…
x
Reference in New Issue
Block a user