Use join for the group list also in the participant view

This commit is contained in:
Norman Jäckel 2012-11-21 14:09:47 +01:00
parent 5939b98772
commit 00e77ba0fc

View File

@ -13,11 +13,11 @@
<h2>{% trans "Groups" %}</h2> <h2>{% trans "Groups" %}</h2>
<p> <p>
{% for group in shown_user.groups.all %} {% if shown_user.groups.all %}
{{ group }}, {{ shown_user.groups.all|join:", " }}
{% empty %} {% else %}
{% trans "The participant is not member of any group." %} {% trans "The participant is not member of any group." %}
{% endfor %} {% endif %}
</p> </p>
{% if shown_user.get_gender_display %} {% if shown_user.get_gender_display %}