i am using nested for loop in django template to print data which i get from the data base
{% if objectives %}
{% for obj in objectives %}
{% for sobj in sobjective %}
{% if sobj.id==obj.id %} yes {% endif %}
all the open tags are closed
but its raising an error as i mentioned above
TemplateSyntaxError at /objectives
Could not parse the remainder: '==obj.id' from 'sobj.id==obj.id'