#13968: SelectDateWidget does not validate chosen date -------------------------------+-------------------------------------------- Reporter: mitar | Owner: lemanal Status: assigned | Milestone: Component: Forms | Version: 1.2 Resolution: | Keywords: Stage: Accepted | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | -------------------------------+-------------------------------------------- Comment (by gptvnt):
Looks like it's fixed in the latest trunk. Following the same example, I get the following - {{{ >>> from django import forms >>> from django.forms.extras.widgets import SelectDateWidget >>> class DateForm(forms.Form): ... date = forms.DateField(widget=SelectDateWidget) ... >>> form = DateForm({'date_month':'2', 'date_day':'31', 'date_year':'2010'}) >>> form.is_valid() False >>> form.errors {'date': [u'Enter a valid date.']} }}} -- Ticket URL: <http://code.djangoproject.com/ticket/13968#comment:3> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.