Opened 17 years ago

Closed 17 years ago

#5254 closed (invalid)

Tutorial correction

Reported by: dorai@… Owned by: Jacob
Component: *.djangoproject.com Version: 0.96
Severity: Keywords: tutorial model Polls
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Polls model.py

from django.db import models

class Poll(models.Model):

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

class Choice(models.Model):

poll = models.ForeignKey(Poll)
choice = models.CharField(max_length=200)
votes = models.IntegerField()

This gives an error. max_length in both the classes need to be changed to maxlength in the tutorial. I am using the 0.96 version.

Change History (1)

comment:1 by Malcolm Tredinnick, 17 years ago

Resolution: invalid
Status: newclosed

Please have a look at the top of every page where it mentions there are different documentation pages for different versions.

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