Opened 8 years ago

Closed 8 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: UI/UX:

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 Changed 8 years ago by mtredinnick

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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