summaryrefslogtreecommitdiff
path: root/tests/regressiontests/datatypes/models.py
diff options
context:
space:
mode:
authorGary Wilson Jr <gary.wilson@gmail.com>2007-08-05 05:14:46 +0000
committerGary Wilson Jr <gary.wilson@gmail.com>2007-08-05 05:14:46 +0000
commit212ee65be782240554749f25bbd3772240d56fff (patch)
tree81ac3c9ae0c49d6ee1854b54fbc79a18069edc5f /tests/regressiontests/datatypes/models.py
parent973f44aa4c953baf6bf56b8e5c474f5306452809 (diff)
Fixed #2101 -- Renamed `maxlength` argument to `max_length` for oldforms `FormField`s and db model `Field`s. 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.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5803 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/datatypes/models.py')
-rw-r--r--tests/regressiontests/datatypes/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/regressiontests/datatypes/models.py b/tests/regressiontests/datatypes/models.py
index 8c5c8c285d..ff9666bc0c 100644
--- a/tests/regressiontests/datatypes/models.py
+++ b/tests/regressiontests/datatypes/models.py
@@ -7,7 +7,7 @@ from django.db import models
from django.conf import settings
class Donut(models.Model):
- name = models.CharField(maxlength=100)
+ name = models.CharField(max_length=100)
is_frosted = models.BooleanField(default=False)
has_sprinkles = models.NullBooleanField()
baked_date = models.DateField(null=True)