All,
Can t we do the following in templates
{% if subject.id == selected_id %}
and also cannot we assign variable like {{selected=”selected”}}
Thank……..
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This comparison will work in Django 1.2. For 1.1 you have to use ifequal:
For variable assignment you can use with.
Don’t hesitate to read the documentation, it doesn’t hurt.