Re: Django templates, break a for after an if

2009-10-27 Thread Nicu Marcu
Thanks for help, very cool stuff, work perfect. 2009/10/26 Tom Evans > > On Mon, 2009-10-26 at 15:54 +0200, Jani Tiainen wrote: > > NMarcu kirjoitti: > > > Hello all, > > > > > >I want to do something like this: > > > > > > {% for u in users %} > > > {%

Re: Django templates, break a for after an if

2009-10-26 Thread Tom Evans
On Mon, 2009-10-26 at 15:54 +0200, Jani Tiainen wrote: > NMarcu kirjoitti: > > Hello all, > > > >I want to do something like this: > > > > {% for u in users %} > > {% for su in superu %} > > {% ifequal u su %} > >//do

Re: Django templates, break a for after an if

2009-10-26 Thread Jani Tiainen
NMarcu kirjoitti: > Hello all, > >I want to do something like this: > > {% for u in users %} > {% for su in superu %} > {% ifequal u su %} >//do something end exit > from this for > {% endifequal %} > {%

Django templates, break a for after an if

2009-10-26 Thread NMarcu
Hello all, I want to do something like this: {% for u in users %} {% for su in superu %} {% ifequal u su %} //do something end exit from this for {% endifequal %} {% endfor %} {% endfor %} How can I