summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-06-11 11:19:43 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-06-11 11:19:43 +0000
commit04f5bd4378acccc73fa6fb01e9e1798ae5815b9d (patch)
treefcbe99546835e0f51452ea7f187da25eba351b4a /docs
parent484527f7802d78964d5646cc5fad833bfd7c4b6e (diff)
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
Diffstat (limited to 'docs')
-rw-r--r--docs/model-api.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/model-api.txt b/docs/model-api.txt
index a6bb8a5cfc..09440f2b56 100644
--- a/docs/model-api.txt
+++ b/docs/model-api.txt
@@ -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``
~~~~~~~~~~~~~~~~