diff options
| author | Joseph Kocherhans <joseph@jkocherhans.com> | 2007-06-15 04:02:33 +0000 |
|---|---|---|
| committer | Joseph Kocherhans <joseph@jkocherhans.com> | 2007-06-15 04:02:33 +0000 |
| commit | d304ccad8c24e29b7328019b81e93f792af482d0 (patch) | |
| tree | 90719f2181c7f67db59594292cbf67566e68bcf1 /docs/model-api.txt | |
| parent | ec622fc2a9e51f62c1b61027037b9dd9f1930966 (diff) | |
newforms-admin: Merged to trunk [5473].
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@5475 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/model-api.txt')
| -rw-r--r-- | docs/model-api.txt | 5 |
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`` ~~~~~~~~~~~~~~~~ |
