Re: __init__ got unexpected argument

2011-07-21 Thread sakthi vel
Thank you! On Thu, Jul 21, 2011 at 8:52 PM, Alex Hall 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 wrote: > > while executing the following model i got the error message > > __init() got an

Re: __init__ got unexpected argument

2011-07-21 Thread Alex Hall
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 wrote: > while executing the following model i got the error message > __init() got an unexpected keyword argument 'maxlength' > > > from django.db import models

__init__ got unexpected argument

2011-07-21 Thread shakthi
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