Re: Integer Max/Min Values

2009-05-16 Thread Sam Kuper
2009/5/17 sampablokuper > I've been encountering the same problem. It's especially frustrating > because it seems model validation used to be much easier in Django > (see > http://www.cotellese.net/2007/12/11/adding-model-field-validation-to-the-django-admin-page/ > ). > [...] > > Are the Django

Re: Integer Max/Min Values

2009-05-16 Thread sampablokuper
On May 17, 12:07 am, Daniel Roseman wrote: > On May 16, 11:32 pm, ajohnsen wrote: > > I am trying to assign max_value and min_value to a > > PositiveIntegerField in my model but am getting the error: > > > year_built = models.PositiveIntegerField(min_value=1800, > > max_value=2100) > > TypeError

Re: Integer Max/Min Values

2009-05-16 Thread Daniel Roseman
On May 16, 11:32 pm, ajohnsen wrote: > Hello, > > I am trying to assign max_value and min_value to a > PositiveIntegerField in my model but am getting the error: > > year_built = models.PositiveIntegerField(min_value=1800, > max_value=2100) > TypeError: __init__() got an unexpected keyword argume

Integer Max/Min Values

2009-05-16 Thread ajohnsen
Hello, I am trying to assign max_value and min_value to a PositiveIntegerField in my model but am getting the error: year_built = models.PositiveIntegerField(min_value=1800, max_value=2100) TypeError: __init__() got an unexpected keyword argument 'max_value' Here is the model: from django.db i