It has been renamed to "max_length". See this page for more information:
http://docs.djangoproject.com/en/dev/releases/1.0-porting-guide/ Ben On 4 Sep 2008, at 05:41, zissan wrote: > > Hi all: > I am a newbie to web development and django. > First, I would like to celebrate the release of Django 1.0 and thanks > everyone make this became reality. > I am learning django by using the book " Learning Web Development with > Django" publised by Packt Publishing. > The books is based on django version 0.96. I got "TypeError: > __init__() > got an unexpected keyword argument 'maxlength' > " when I was follow the book to define a data class like below one: > > class Bookmark(models.Model): > title = models.CharField(maxlength=200) > > Is there something has been chaged sine 0.96? > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---