Django

Code

Changeset 5459

Show
Ignore:
Timestamp:
06/11/07 06:19:43 (2 years ago)
Author:
mtredinnick
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/model-api.txt

    r5435 r5459  
    447447 
    448448The admin represents this as an ``<input type="text">`` (a single-line input). 
     449 
     450``URLField`` takes an optional argument, ``maxlength``, the maximum length (in 
     451characters) of the field. The maxlength is enforced at the database level and 
     452in Django's validation. If you don't specify ``maxlength``, a default of 200 
     453is used. 
    449454 
    450455``USStateField``