Browse files

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

…for the


git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
malcolmt committed Jun 11, 2007
1 parent 484527f commit 04f5bd4378acccc73fa6fb01e9e1798ae5815b9d
Showing with 5 additions and 0 deletions.
  1. +5 −0 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.

0 comments on commit 04f5bd4

Please sign in to comment.