Opened 17 years ago

Closed 17 years ago

#5119 closed (invalid)

Error in tutorial

Reported by: anonymous Owned by: Jacob
Component: Uncategorized 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

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.

Change History (1)

comment:1 by Matt McClanahan <cardinal@…>, 17 years ago

Resolution: invalid
Status: newclosed

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/

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