On Feb 18, 10:10 pm, "Arnaud Delobelle" <[EMAIL PROTECTED]>
wrote:
> > However - I acknowledge the use case: Two lists, n items long, that
> > are from independent sources.  I think a separate template tag in the
> > same vein as {% regroup %}  would be a better approach.
>
> > {% zip lista listb as combined %}
> > {% for a,b in combined %}

I prefer using filters for this sort of thing:
{% for a,b in lista|zip:listb %}
{% endfor %}

Regarding the main part of this post (unpacking of lists in a for
tag), I'm surprised no-one has created a ticket yet!
Here it is now: http://code.djangoproject.com/ticket/3523


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to