It'll be better to use validators with IntegerField
https://docs.djangoproject.com/en/1.3/ref/models/fields/#validators
https://docs.djangoproject.com/en/1.3/ref/validators/

In this case you can specify allowed year range.


On Sat, Jun 11, 2011 at 9:25 AM, mhulse <rgmi...@gmail.com> wrote:

> Hi Martin! Thanks so much for the help, I really appreciate it. :)
>
>
> > The snippet is a form field, not a model field.
>
> Well, that would explain things! Lol.
>
> When I read this in the instructions:
>
> "Usage eg: yob = BirthYearField(label="What year were you born?")"
>
> I thought that was a model field.
>
> Thanks for pointing me in the right direction! :)
>
> Have a nice day.
>
>
> Cheers,
> Micky
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/BPbNW-I4VC8J.
>
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Alex Kamedov
skype: kamedov    www: kamedov.ru

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to