Django

Code

Ticket #8199 (closed: invalid)

Opened 2 years ago

Last modified 2 years ago

incorrect parameter for 'CharField' in http://www.djangoproject.com/documentation/model-api/

Reported by: tsmets Assigned to: nobody
Milestone: 1.0 beta Component: Documentation
Version: 0.96 Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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)

Attachments

Change History

08/09/08 21:31:53 changed by Alex

  • status changed from new to closed.
  • needs_better_patch changed.
  • resolution set to invalid.
  • needs_tests changed.
  • needs_docs changed.

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.


Add/Change #8199 (incorrect parameter for 'CharField' in http://www.djangoproject.com/documentation/model-api/)




Change Properties
Action