Django

Code

Ticket #5119 (closed: invalid)

Opened 1 year ago

Last modified 1 year ago

Error in tutorial

Reported by: anonymous Assigned to: jacob
Milestone: Component: Uncategorized
Version: 0.96 Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Error in tutorial at http://www.djangoproject.com/documentation/tutorial01/ :

from django.db import models

class Poll(models.Model):

question = models.CharField?(max_length=200) pub_date = models.DateTimeField?('date published')

(...)

max_length should be maxlength.

Attachments

Change History

08/08/07 13:52:15 changed by Matt McClanahan <cardinal@dodds.net>

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

The argument was recently changed to max_length in the trunk version. See #2101 and [5803].

If you are using Django 0.96, the documentation you should use is http://www.djangoproject.com/documentation/0.96/


Add/Change #5119 (Error in tutorial)




Change Properties
Action