Thanks for the response, Norman!
Unfortunately, the Google App Engine version of Django doesn't support
the 'with' tag (which would otherwise solve my problem).  Also, I
don't think I can pass in a context var that already has the list I
want, because I need a list *per* document.

Any suggestions are extremely welcome!  I've been banging my head
against this problem all day.

On May 14, 2:44 pm, "Norman Harman" <[EMAIL PROTECTED]> wrote:
> Sorry, I don't know the exact answer but I can point you in right direction.
>
> templates always use dot notation for dictionary access
>
> tag_dict.document.uid
>
> But I don't think that will work inside a "for" tag and also won't work
> cause you want the document.uid to be key not "document".
>
> The workaround I'm aware of is the "with" tag.
>
> http://www.djangoproject.com/documentation/templates/#with
>
> something like this
>
> {% with document.uid as uid %}
>    {% for doctag in tag_dict.uid %} {{ doctag.tagid }} {% endfor % }
> {% endwith %}
>
> An alternative is to pass in a context var that already has the list you
> want.
>
> --
> Norman J. Harman Jr.  512 912-5939
> Technology Solutions Group, Austin American-Statesman
> ___________________________________________________________________________
> Get out and about this spring with the Statesman! In print and online,
> the Statesman has the area's Best Bets and recreation events.
> Pick up your copy today or go to statesman.com 24/7.
--~--~---------~--~----~------------~-------~--~----~
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