Re: Many to Many field and the template

2008-05-25 Thread Eric Abrahamsen
Double curly brackets {{ }} are used for variable substitution. These brackets: {% %} are used for template tags, of which the for loop is one. So you want: {% for et in entity.entity_type.all %} Yours, Eric On May 25, 2008, at 6:59 PM, M.Ganesh wrote: > > Hi All, > > Unable to find a rele

Many to Many field and the template

2008-05-25 Thread M.Ganesh
Hi All, Unable to find a relevent info in the mail archives/ documentation. I am getting this error : TemplateSyntaxError at /contacts/entity/8/show/ Could not parse the remainder: ' et in entity.entity_type.all' from 'for et in entity.entity_type.all' #my model class entity(models.Model):