You can also override the save method in the model to prevent bad dates (i.e. > your maximum date) to be saved to the database, if by any chance your use case doesn't include users filling out a nice, simple html form.
Cheers, AT On Thu, Nov 17, 2011 at 5:07 AM, Babatunde Akinyanmi <tundeba...@gmail.com>wrote: > -1 > If you need to limit the latest date a user can input, do it while > cleaning your form > > On 11/17/11, Michael Nacharov <michael.nacha...@gmail.com> wrote: > > Hello Django Expets! > > In one of my Django app, users must fill some forms with Django > > DateField. Why this class does not contain field max_value? Perhaps it > > is worth a new ticket? > > > > -- > > 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. > > > > > > -- > Sent from my mobile device > > -- > 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. > > -- 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.