#13390: Using AdminSplitDateTime and clean method in DateTimeField -------------------------------+-------------------------------------------- Reporter: vaxXxa | Owner: nobody Status: new | Milestone: Component: Forms | Version: 1.2-beta Resolution: | Keywords: AdminSplitDateTime Stage: Accepted | Has_patch: 1 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 1 | -------------------------------+-------------------------------------------- Comment (by phxx):
I added a few more assertions to the test to make sure that required fields are handled corretly. I think you're point is already covered with the code. The '''to_python''' method of '''DateTimeField''' returns '''None''' if the value is a list of two times which are ''empty values''. So the clean method in '''Field.clean''' will get '''None''' if an empty value from '''SplitedDateTimeWidget''' is passed into the field and will handle the '''required''' attribute correctly. -- Ticket URL: <http://code.djangoproject.com/ticket/13390#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.