Thank you!

On Thu, Jul 21, 2011 at 8:52 PM, Alex Hall <[email protected]> wrote:

> The word you want is max_length, not maxlength (note the underscore).
> Try changing to max_length and it should run.
>
> On 7/21/11, shakthi <[email protected]> wrote:
> > while executing the following model i got the error message
> > __init() got an unexpected keyword argument 'maxlength'
> >
> >
> > from django.db import models
> >
> > class Author(models.Model):
> >     name=models.CharField(maxlength=20)
> >     city=models.CharField(maxlength=10)
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" 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-users?hl=en.
> >
> >
>
>
> --
> Have a great day,
> Alex (msg sent from GMail website)
> [email protected]; http://www.facebook.com/mehgcap
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" 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-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en.

Reply via email to