On 06-12-11 02:05, Nan wrote:
So, yes, I know one can combine template filter arguments by quoting
them into a single concatenated string...  But what if one needs to do
something that amounts to the following?

{% for object in object_list %}
     {{ some_other_var|custom_filter(constant_string, object.field)|
some_other_filter|etc }}
{% endfor %}

Obviously one can't within the loop convert the argument list into a
string.  Is there any workaround for this that isn't horribly ugly?

Sounds like your best bet is to try and do it in your Python view code instead of in your template.


Reinout

--
Reinout van Rees                    http://reinout.vanrees.org/
rein...@vanrees.org             http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"

--
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to