smartif tag not working out correctly
Posted
by 47
on Stack Overflow
See other posts from Stack Overflow
or by 47
Published on 2010-05-27T07:53:03Z
Indexed on
2010/05/27
8:01 UTC
Read the original article
Hit count: 127
I'm using the smartif tag from this snippet (I'm holding on with regards to upgrading to 1.2) in my template for a certain boolean field like so:
{% if payment.extends_membership == "True" %}
{% trans "Yes" %}
{% else %}
{% trans "No" %}
{% endif %}
But whatever the value of extends_membership
I get only No
as the output. What could be the problem?
© Stack Overflow or respective owner