Thanks heaps Daniel,
it was the spaces
On Thu, Feb 22, 2018 at 10:57 PM, Daniel Roseman <[email protected]>
wrote:
> 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
> <https://groups.google.com/d/msgid/django-users/e6befa94-3c19-4ff5-b65d-4aa912f160e0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
--
--
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/CAPCf-y5jjh-iJWhhu%3DV8o4v5KOC%3D4bCNHKg%2BnKwR3b1u1n17rw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.