#11367: Use settings instead of defaults for forms.DateField and similars
-----------------------------------------------+----------------------------
 Reporter:  hcarvalhoalves                     |       Owner:  nobody    
   Status:  new                                |   Milestone:            
Component:  Forms                              |     Version:  SVN       
 Keywords:  forms newforms settings date time  |       Stage:  Unreviewed
Has_patch:  0                                  |  
-----------------------------------------------+----------------------------
 There's already two settings used by the template {{{date}}} and
 {{{time}}} filters ({{{DATE_FORMAT}}} and {{{TIME_FORMAT}}}), used for
 formatting in similar way as PHP's {{{date()}}}. Form fields like Date and
 Time, OTH, use {{{strftime()}}} formatting strings, and have hardcoded
 defaults.

 It's common to inherit from those fields just for changing default formats
 and avoid boilerplate code (e.g, having to set {{{date_format=}}} in every
 form).

 Those fields could, instead, make use of the DATE_FORMAT and TIME_FORMAT
 settings as defaults, if those are present.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11367>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to