Opened 7 years ago

Closed 7 years ago

Last modified 3 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: UI/UX:

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

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 Changed 3 years ago by jacob

  • milestone 1.0 beta deleted

Milestone 1.0 beta deleted

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