ing to collect bar instances
> return bars
> bars = property(get_bars)
>
> in my template, I'd like to do something like this:
>
> {% for bar in foo.bars %}
> {{bar.snafu}}
> {% endfor %}
>
> But when I do that, I get "TemplateSyntaxError: 'proper
ndfor %}
But when I do that, I get "TemplateSyntaxError: 'property' object is
not iterable."
If I change it to {% for bar in foo.get_bars() %}, I get a
TemplateSyntaxError: could not parse the remainder"
If I change it to {% for bar in foo.get_bars %}, the template ru
2 matches
Mail list logo