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/m2m_multiple/models.py

    r5609 r5803  
    1111 
    1212class Category(models.Model): 
    13     name = models.CharField(maxlength=20) 
     13    name = models.CharField(max_length=20) 
    1414    class Meta: 
    1515       ordering = ('name',) 
     
    1919 
    2020class Article(models.Model): 
    21     headline = models.CharField(maxlength=50) 
     21    headline = models.CharField(max_length=50) 
    2222    pub_date = models.DateTimeField() 
    2323    primary_categories = models.ManyToManyField(Category, related_name='primary_article_set')