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

Model IntegerField Error

2009-05-15 Thread ajohnsen
Hello, Can anybody tell me what I'm doing wrong here. I am trying to assign a min and max value for an integer field in my model below: from django.db import models from django.forms import ModelForm floor_plan_choices = ( ('A', 'Square'), ('B', 'Rectangular'), ('C',

Re: Tutorial help, cannot save data

2009-05-12 Thread ajohnsen
Hello DR, Sorry I was misleading. I was actually referencing a section form the djangobook, chapter 7 -- not the tutorial. And I have read the link you you sent, but as in other places in the documentation, it seems the save command is only explained when in the shell. I can't figure out how