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
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',
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
3 matches
Mail list logo