#8199 closed (invalid)
incorrect parameter for 'CharField' in http://www.djangoproject.com/documentation/model-api/
Reported by: | tsmets | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 0.96 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Doco's indicates :
CharField has an extra required argument, max_length
should be
CharField has an extra required argument, 'maxlength'
Similarilly in http://www.djangoproject.com/documentation/model-api/
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)
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.