#7443: timesince template filter reverses its parameters when given a base date
---------------------------------------------------------------------+------
Reporter: Andrew Shearer <[EMAIL PROTECTED]> | Owner:
nobody
Status: reopened |
Milestone:
Component: Template system |
Version: SVN
Resolution: |
Keywords: timesince timeuntil date handling filter
Stage: Ready for checkin |
Has_patch: 1
Needs_docs: 0 |
Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------------------------------+------
Comment (by russellm):
Replying to [comment:5 ashearer]:
> In summary, the timesince filter is at best confusing (in which I have
company at ticket #8453) and at worst flies in the face of analogies to
timeuntil, its own single argument form, and two out of the three
sentences of documentation that mention its two-argument form.
Now that you've provided a set of test cases and highlighted the exact
problem, I can see what you're driving at. If your original patch had
these 8 examples (and then explained why the patch broke the three
existing test cases), it would have been accepted much faster.
I'll update the patch and tests and commit this in the near future.
> (By the way, russelm: the parameter ordering is "slightly" different?
There are only two parameters. Which ordering would rise to the level of
"extremely" different?)
You know - pedantry has a lot more impact when you take the care to
correctly spell the name of the person you are criticising :-)
--
Ticket URL: <http://code.djangoproject.com/ticket/7443#comment:6>
Django Code <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
-~----------~----~----~----~------~----~------~--~---