1
0
mirror of https://github.com/django/django.git synced 2025-04-01 12:06:43 +00:00

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

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