0
0
mirror of https://github.com/django/django.git synced 2024-11-30 23:20:50 +01:00

Fixed #4406 -- Documented the maxlength parameter (added in [4295]) for the

URLField.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5459 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2007-06-11 11:19:43 +00:00
parent 484527f780
commit 04f5bd4378

View File

@ -447,6 +447,11 @@ and doesn't give a 404 response).
The admin represents this as an ``<input type="text">`` (a single-line input).
``URLField`` takes an optional argument, ``maxlength``, the maximum length (in
characters) of the field. The maxlength is enforced at the database level and
in Django's validation. If you don't specify ``maxlength``, a default of 200
is used.
``USStateField``
~~~~~~~~~~~~~~~~