How to check in template whether user belongs to some group?
It is possible in a view which is generating the template but what if I want
view
template
{% if target_group in user.groups.all.0.name %} # do your stuff {% endif %}