python - TemplateSyntaxError Unused at end of if expression -



python - TemplateSyntaxError Unused at end of if expression -

django 1.6. i'm getting next error:

exception type: templatesyntaxerror @ /docprofile/5/ exception value: unused 'c.user_id' @ end of if expression.

on line:

{% if c.user_id == like.user_id , c.doctor_id == like.doctor_id %}

i've next code:

{% c in ugc %} {% if c.doctor_id == doctor.id %} <div class="cmts"> <h4>{{c.comment}}</h4> <h4>{{c.user_id}}</h4> <p>waited less {{c.time}} mins</p> <p class="timestamp">{{c.submitted_on}}</p> </div> {% if c.user_id == like.user_id , c.doctor_id == like.doctor_id %} <img class="thumbs" src="/static/meddy1/images/thumbsup.png"> {% elif if c.user_id == dislike.user_id , c.doctor_id == dislike.doctor_id %} <img class="thumbs" src="/static/meddy1/images/thumbsdown.png"> {% endif %} {% endif %} {% endfor %}`enter code here`

what mean unused @ end of if statement?

python django if-statement boolean

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -