#5159: 'max_length=200' should be replaced by 'maxlength=200' in part 1 of 
django
tutorial
----------------------------------+-----------------------------------------
Reporter:  [EMAIL PROTECTED]  |       Owner:  jacob        
  Status:  new                    |   Component:  Documentation
 Version:  SVN                    |    Keywords:               
   Stage:  Unreviewed             |   Has_patch:  0            
----------------------------------+-----------------------------------------
 Hi,
 
 In the following example from part 1 of the django tutorial, when I tried
 running 'python manage.py sql polls', I got a TypeError: __init()__ got an
 unexpected keyword argument 'max_length'. The error disappeared when I
 changed 'max_length=200' to 'maxlength=200'. Is this an error in the
 tutorial documentation?
 
 Cheers,
 
 Sabbir.
 
 ---------------------------------
 
 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()

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5159>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to