Use the attribute 'label' rather than 'label_tag'. The latter is the HTML element.
-- Do:
{% if field.label != 'Tags' %}
{{ field.label_tag }}
{% endif %}
On Monday, September 22, 2014 10:51:59 AM UTC+2, Salvatore DI DIO wrote:Cheers
Hello,
I woulk like to test field.label_tag in the fieldset.html template
For example I want to do:
{% if field.label_tag != 'Tags' %}
{{ field.label_tag }}
{% endif %}
But that seems to not work
Thanks for your suggestions
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2d0d65cf-c2e0-43dc-8e54-222948e1ec14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment