On Thursday, 22 February 2018 06:16:32 UTC, suabiut wrote:
>
> Could not parse the remainder: '=="1"' from 'selected_value=="1"'
>
>
> i got the above error  when passing the select value. I have no clue what 
> i am missing. please assist 
> {%if selected_value=="1"%} 
>
>
>
>
> Cheers,
>

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 [email protected].
To post to this group, send email to [email protected].
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.

Reply via email to