Django

Code

Show
Ignore:
Timestamp:
08/05/07 00:14:46 (1 year ago)
Author:
gwilson
Message:

Fixed #2101 -- Renamed maxlength argument to max_length for oldforms FormFields and db model Fields. This is fully backwards compatible at the moment since the legacy maxlength argument is still supported. Using maxlength will, however, issue a PendingDeprecationWarning when used.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/tutorial02.txt

    r5303 r5803  
    241241Then change the other fields in ``Choice`` to give them ``core=True``:: 
    242242 
    243     choice = models.CharField(maxlength=200, core=True) 
     243    choice = models.CharField(max_length=200, core=True) 
    244244    votes = models.IntegerField(core=True) 
    245245