Opened 7 years ago
Closed 7 years ago
Last modified 4 years ago
#8199 closed (invalid)
incorrect parameter for 'CharField' in
Description
Doco's indicates :
CharField has an extra required argument, max_length
should be
CharField has an extra required argument, 'maxlength'
Similarilly in
you have
from django.db import models
class Person(models.Model):
first_name = models.CharField(max_length=30)
last_name = models.CharField(max_length=30)
should be
from django.db import models
class Person(models.Model):
first_name = models.CharField(maxlength=30)
last_name = models.CharField(maxlength=30)
Change History (2)
comment:1 Changed 7 years ago by Alex
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Resolution set to invalid
- Status changed from new to closed
comment:2 Changed 4 years ago by jacob
- milestone 1.0 beta deleted
Milestone 1.0 beta deleted
No, maxlength has been removed in favor of max_length in the latest trunk, the .96 docs still reflect the fact that maxlength is used there.