﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
5905	Typo in WritingFirstApp/Part1/CreatingModels, polls/models.py should read maxlength not max_length	riazrizvi@…	nobody	"using Django 0.96.1 on WindowsXP/Python24/Mysql50, in tutorial WritingFirstApp/PartOne/CreatingModels, I get an error if I follow these instructions

{{{
These concepts are represented by simple Python classes. Edit the polls/models.py file so it looks like this:
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()
}}}


I get an error when I run

{{{
 python manage.py sql polls
}}}


unless I remove the underscore from the CharFields of Poll and Choice models to read

{{{
... .CharField(maxlength=200)
}}}




"		closed	Documentation	dev		invalid			Unreviewed	0	0	0	0	0	0
