mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
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.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5803 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -10,14 +10,14 @@ reserved-name usage.
|
||||
from django.db import models
|
||||
|
||||
class Thing(models.Model):
|
||||
when = models.CharField(maxlength=1, primary_key=True)
|
||||
join = models.CharField(maxlength=1)
|
||||
like = models.CharField(maxlength=1)
|
||||
drop = models.CharField(maxlength=1)
|
||||
alter = models.CharField(maxlength=1)
|
||||
having = models.CharField(maxlength=1)
|
||||
where = models.DateField(maxlength=1)
|
||||
has_hyphen = models.CharField(maxlength=1, db_column='has-hyphen')
|
||||
when = models.CharField(max_length=1, primary_key=True)
|
||||
join = models.CharField(max_length=1)
|
||||
like = models.CharField(max_length=1)
|
||||
drop = models.CharField(max_length=1)
|
||||
alter = models.CharField(max_length=1)
|
||||
having = models.CharField(max_length=1)
|
||||
where = models.DateField(max_length=1)
|
||||
has_hyphen = models.CharField(max_length=1, db_column='has-hyphen')
|
||||
class Meta:
|
||||
db_table = 'select'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user