#13437: SelectDateField doesn't retain partially posted values when USE_L10N=True ----------------------+----------------------------------------------------- Reporter: russellm | Owner: nobody Status: new | Milestone: Component: Forms | Version: SVN Keywords: | Stage: Unreviewed Has_patch: 0 | ----------------------+----------------------------------------------------- If you have localization enabled, and you have a SelectDateField (django.forms.extras.widgets), and you post a year, month and day value, the widget works as advertised.;
However, if you only post partial data (e.g., only the year and month, but *not* the day), the year and month value are not preserved; the widgets are reset to empty values. This is inconsistent with the unlocalized behavior, which will preserve all available data. This is because strftime can't format missing values, and strptime can't parse missing values. The parsing failure is turned into a None value for the entire date, rather than retaining partial data in a '2010-04-00' type structure as happens with unlocalized inputs. -- Ticket URL: <http://code.djangoproject.com/ticket/13437> 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.
