#13621: Regression in 1.2.1. date/time widgets are printing their values with an
invalid format
-------------------------------+--------------------------------------------
          Reporter:  bufke     |         Owner:  jacmkno
            Status:  assigned  |     Milestone:         
         Component:  Forms     |       Version:  1.2    
        Resolution:            |      Keywords:         
             Stage:  Accepted  |     Has_patch:  1      
        Needs_docs:  0         |   Needs_tests:  1      
Needs_better_patch:  1         |  
-------------------------------+--------------------------------------------
Changes (by russellm):

  * needs_better_patch:  0 => 1

Comment:

 As far as I can make out, there are actually three problems here:

  1. settings.TIME_INPUT_FORMATS isn't honored by the input widget
  2. A form field that specifies input_formats=... doesn't pass that
 configuration down to the widget
  3. There's no easy way to enable localized widgets in admin (it's
 possible, but not trivial or automatic as you might expect)

 Problem (1) is the regression from 1.2.

 Problem (2) exists in 1.1.

 Problem (3) is a request for an admin enhancement. It's a legitimate
 request, but it's separate to this bug.

 @jacmkno -- the solution isn't just to force all datetime widgets to be
 localized by default; this hides the issue, rather than fixing it. All you
 have to do is set localize=False to reveal the bug again.

 @zerok's patch is closer to the mark, but it convolves the three issues.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13621#comment:17>
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