Hello, Today I tried to handle custom dates formats in admin and there are a couple of issues related to that.
First on rendering, AdminDateWidget doesn't inherit from DateTimeInput which seems more logic to me. I eventually update the patch #7656 and it works. Is there any reason against that approach before I add tests and documentation? Then on validation, my first idea was to allow form.fields.DEFAULT_DATE/TIME_INPUT_FORMATS to be overridden by settings and I think it makes sense because from my experience, when you decide to create a website (let's say, in French) you do not want to pass your custom input_formats argument to all your fields. I know, I can add a FRDate/TimeField in localflavor but it doesn't solve the admin issue either. Are there drawbacks to this approach? I know that the timing isn't that good because you are working on big 1.1 features but I need it now and I'll work on it so feedback is appreciated before I submit complete patches. Regards, David ps: looking for tickets on this topic, I found #8962 which is interesting in terms of consistency, note that the author discuss the interest of settings in comments too. http://code.djangoproject.com/ticket/7656 http://code.djangoproject.com/ticket/8962 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" 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-developers?hl=en -~----------~----~----~----~------~----~------~--~---
