#12444: Inline Forms in the admin interface are always required when using L10N -----------------------------------------------------+---------------------- Reporter: Bernd Schlapsi <b...@gmx.info> | Owner: nobody Status: reopened | Milestone: 1.2 Component: django.contrib.admin | Version: SVN Resolution: | Keywords: Internationalization Stage: Unreviewed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | -----------------------------------------------------+---------------------- Comment (by Bernd Schlapsi <b...@gmx.info>):
The problem could be in the method "!BaseForm._get_changed_data" of "django/forms/forms.py" If you are using L10N with the LANGUAGE_CODE = 'de-at' the date format is "d.m.Y H:i:s" (e.g: 27.12.2009 18:55:00). The method "_get_changed_data" now compares the value of the widget "31.12.2999 23:59:59" with the initial date value "2999-12-31 23:59:59". And so the form contains changed values and the formset is invalid because the required fields are empty.[[BR]] The initial value is the problem here. If django would translate the initial date value the the L10N date value the problem is solved, isn't it? The other question is why the widget stores/compares string values instead of date values? -- Ticket URL: <http://code.djangoproject.com/ticket/12444#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.