On Nov 7, 4:11 pm, jago <[EMAIL PROTECTED]> wrote: > Sure. > > {% for gallerykind in gallerykinds %} > <td class="thumb"> > <a href="/create? > index={{ gallerykind.index }}">{{ gallerykind.title }}</a> > > {% if gallerykind.author %} > <br/><span>by <a > rel="nofollow" href="/gallery? > username={{ gallerykind.author }}">{{ gallerykind.author }}</a></span> > {% endif %} > > <br/><span>{{ > agelist.forloop.counter0 }}</span> > </td> > {% endfor %} > > My problem is agelist. I tried to indicated my intent by writing > agelist.forloop.counter0.
What is agelist, though? Is it another queryset? How is it related to the gallerykinds queryset? > Where do I do this zip() operation? In the python code before > constructing the template or in the django-code? > > wrapper = zip(list1, list2) > > Access in the django code is then: > > {% for w in wrapper %} > w.0.title > w.1 > > ??? That depends on what agelist is, but yes that's the right idea. -- DR. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---