{% for item in campaigns %}
{{ item.id }}
{% endfor %}

2006/11/10, Merric Mercer <[EMAIL PROTECTED]>:
>
> As part of  my render_to_response I have returned  the following:-
> 'campaigns':dict1  - where dict1 is a dictionary of objects from a model
> called "Campaigns".
>
> In my template I can do things like {{ campaigns.0.id }} and {{
> campaigns.1.id }} to access the dictionary.
>
> But, how do I iterate over a dictionary like this within the template?
>
> Cheers
>
> MerMer
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
 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