mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Fixed #25595 -- Doc'd that URLValidator rejects file:// URIs without a host.
This commit is contained in:
parent
e5ec11a84d
commit
7326513a8f
1 changed files with 6 additions and 0 deletions
|
@ -183,6 +183,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
|
||||
|
||||
The maximum length of values that could be considered valid. Defaults
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue