Hi, i'm testing the firstof tag in templates, but i want to filter some
vars. In this case, the vars are dates, and usually y use {{
week|date:"W" }} to get the week number (week is a full date), but i
also want to get the same with {{ day|date:"W" }} (also a full date).

It,of course, can be done with some if, but firstof seems to be my best
friend here ;). I've tried with {% firstof week|date:"W" day|date:"W"
%} and it doesn't work (at least with last cvs version), and wrapping
it with {% filter date:"W" %} seems to not work because it handle the
vars as text, not a date.

I've googled a lot in this list and read the docs in the webpage, but i
have not find something about it. If it's not possible, it could be a
good feature request for the next version ;), and if is possible,
someone could point me how do it? thanks. :)


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to