Use the attribute ‘label’ rather than ‘label_tal’. The latter is the HTML 
element.

Do:

{% if field.label != 'Tags' %}
    {{ field.label_tag }}
{% endif %}

Cheers

On 22 Sep 2014, at 10:51, Salvatore DI DIO <salvatore.di...@gmail.com> wrote:

> 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+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/f49e012b-34f7-4ca6-adf4-9663a9a626af%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to