Assuming obj is iterable, you can do: {% with obj.0.thingobj.get_something as thing %}
...is that what you mean? _Nik On 11/7/2011 11:57 AM, bax...@gretschpages.com wrote: > What I'm after is something like {% with firstof obj.thing > obj.get_something as thing %} > > Is there any way to do this short of writing my own template tag and > figuring out which exists first? Seems like it would be a fairly > common need. > -- 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.