On Sun, Jul 24, 2011 at 9:07 AM, Uffe <ukmorten...@gmail.com> wrote:

> When attempting to use the template feature for *looping over a list of
> lists* (see manual extract below), I get:
>
> "TemplateSyntaxError: 'for' statements with five words should end in
> 'reversed': for x, y in points" (django_0_96)
>
> Trying to make a workaround, using the filter { value|first }, and {
> value|last }, 'first' works, but I get 'invalid filter' on 'last'. Has
> 'last' somehow been forgotten?
>
> Did I miss something, or am I riding a dead horse?
>

You are riding a dead horse, rather. List unpacking was added to the for tag
about 4 years ago (https://code.djangoproject.com/changeset/5443). The 0.96
release you are using is a bit older. The last filter, added in early 2008 (
https://code.djangoproject.com/changeset/6998), is even newer than for's
list unpacking feature.

Karen
-- 
http://tracey.org/kmt/

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to