Fixed #25595 -- Doc'd that URLValidator rejects file:// URIs without a host.

This commit is contained in:
Adam Zapletal 2024-03-08 23:01:27 -06:00 committed by Mariusz Felisiak
parent e5ec11a84d
commit 7326513a8f
1 changed files with 6 additions and 0 deletions

View File

@ -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