Opened 16 years ago

Closed 16 years ago

Last modified 13 years ago

#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)

Change History (2)

comment:1 by Alex Gaynor, 16 years ago

Resolution: invalid
Status: newclosed

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.

comment:2 by Jacob, 13 years ago

milestone: 1.0 beta

Milestone 1.0 beta deleted

Note: See TracTickets for help on using tickets.
Back to Top