Just an idea, but what about using a user profile and then using the
get_profile function?

ex.

{% if user.get_profile.customer %} customer block {% endif %}

R.

On Feb 9, 11:01 am, Alfonso <allanhender...@gmail.com> wrote:
> I'm wondering, I can easily add a if statement to detect whether a
> user is staff in a template - {% if user.is_staff %} blah {% endif %}
> but is there a similar syntax for displaying HTML blocks depending on
> the user group?
>
> A kind of {% if user.is_group(customer) %} blah for customer {% endif
> %}
>
> I'm thinking not but any help much appreciated!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to