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/tests/modeltests/get_object_or_404/models.py

    r5746 r5803  
    1616 
    1717class Author(models.Model): 
    18     name = models.CharField(maxlength=50) 
     18    name = models.CharField(max_length=50) 
    1919     
    2020    def __unicode__(self): 
     
    2727class Article(models.Model): 
    2828    authors = models.ManyToManyField(Author) 
    29     title = models.CharField(maxlength=50) 
     29    title = models.CharField(max_length=50) 
    3030    objects = models.Manager() 
    3131    by_a_sir = ArticleManager()