On Thursday, 22 February 2018 06:16:32 UTC, suabiut wrote:
-- i got the above error when passing the select value. I have no clue what i am missing. please assist
Could not parse the remainder: '=="1"' from 'selected_value=="1"'Cheers,
{%if selected_value=="1"%}
You need spaces - the template language is not Python, and its parser is fairly basic.
{% if selected_value == "1" %} -- DR. |
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e6befa94-3c19-4ff5-b65d-4aa912f160e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment