Django

Code

Ticket #5254 (closed: invalid)

Opened 3 years ago

Last modified 3 years ago

Tutorial correction

Reported by: dorai@thodla.com Assigned to: jacob
Milestone: Component: Django Web site
Version: 0.96 Keywords: tutorial model Polls
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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.

Attachments

Change History

08/25/07 08:46:33 changed by mtredinnick

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

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


Add/Change #5254 (Tutorial correction)




Change Properties
Action