Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…or the

URLField.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5459 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 04f5bd4378acccc73fa6fb01e9e1798ae5815b9d 1 parent 484527f
Malcolm Tredinnick authored June 11, 2007

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. 5  docs/model-api.txt
5  docs/model-api.txt
@@ -447,6 +447,11 @@ and doesn't give a 404 response).
447 447
 
448 448
 The admin represents this as an ``<input type="text">`` (a single-line input).
449 449
 
  450
+``URLField`` takes an optional argument, ``maxlength``, the maximum length (in
  451
+characters) of the field. The maxlength is enforced at the database level and
  452
+in Django's validation. If you don't specify ``maxlength``, a default of 200
  453
+is used.
  454
+
450 455
 ``USStateField``
451 456
 ~~~~~~~~~~~~~~~~
452 457
 

0 notes on commit 04f5bd4

Please sign in to comment.
Something went wrong with that request. Please try again.