Hello,

I have one model, with a Char(1) Field... in my template I use these code:

<span class="label
    {% if status == 'A' %}
       label-success
    {% else %}
       label-danger
    {% endif %}"
        >


But, always enter in "else"... even the record was saved with "A"... I
tried with 'A' and "A", same "problem"...

Any ideas, what's going on?

Cheers!

T.·.F.·.A.·.     S+F
*Fellipe Henrique P. Soares*

e-mail: > echo "lkrrovknFmsgor4ius" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'
*Fedora Ambassador: https://fedoraproject.org/wiki/User:Fellipeh
<https://fedoraproject.org/wiki/User:Fellipeh>*
*Blog: *http:www.fellipeh.eti.br
*GitHub: https://github.com/fellipeh <https://github.com/fellipeh>*
*Twitter: @fh_bash*

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAF1jwZG_w2tc%2BwBEa1EzH09rnqac3vFhKamUHs45jMwAHvQ3JA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to