ollows:
{% for project in projects %}
{{ project }}
{% for chain in project.chains %}
-- {{ chain }}
{% endfor %}
{% endfor %}
It iterates over the projects and prints out the project names but
will not iterate over the project.chains.
Maybe someone can give me some clues?
Regards,
Madis
--
Could someone please explain what kind of a list would make this work:
{% for country in countries %}
{% for city in country.city_list %}
Country #{{ forloop.parentloop.counter }}
City #{{ forloop.counter }}
{{ city }}
{% endfor %}
{% end
http://push.cx/2007/django-template-tag-for-dictionary-access
This is basically what I'm looking for but I'm not sure that this is
the best way to do this.
On Feb 13, 8:55 pm, Madis wrote:
> Sorry for not explaining it more:
>
> chain is a dictionary of lists chains {
op. Now the second loop
should be over the list of chains but the dictionary key is changing
because the name of the project is changing but I can not find a way
to do this in Django templates.
On Feb 13, 8:47 pm, Karen Tracey wrote:
> On Sat, Feb 13, 2010 at 1:30 PM, Madis wrote:
> >
I'm trying to write the following but there seems to be no solution on
the web for this.
In a template:
{% for project in projects %}
{% for chain in chains.project.name %} <--- project.name should be
dynamic
{% endfor %}
{% endfor %}
--
You received this message because you are subscribed t
5 matches
Mail list logo