#9672: timeuntil filters doesn't work with DateField since [8579]
--------------------------------------+-------------------------------------
          Reporter:  anonymous        |         Owner:  nobody             
            Status:  new              |     Milestone:                     
         Component:  Template system  |       Version:  SVN                
        Resolution:                   |      Keywords:  timeuntil timesince
             Stage:  Unreviewed       |     Has_patch:  1                  
        Needs_docs:  0                |   Needs_tests:  0                  
Needs_better_patch:  0                |  
--------------------------------------+-------------------------------------
Changes (by rossp):

 * cc: [email protected] (added)
  * needs_tests:  1 => 0

Comment:

 In my attachment I have moved the anonymous fix into the `timesince` block
 rather than `timeuntil`, so that any use of `timesince` from other places
 (eg direct usage in a view) will also pick up the same change. It also has
 the impact of causing `timesince` with a `now` input of type `date`
 (rather than `datetime`) to work correctly.

 I've also added some unit tests to the patch, hopefully they are
 sufficient for checkin.

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