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>
<p>
{% for group in shown_user.groups.all %}
{{ group }},
{% empty %}
{% if shown_user.groups.all %}
{{ shown_user.groups.all|join:", " }}
{% else %}
{% trans "The participant is not member of any group." %}
{% endfor %}
{% endif %}
</p>
{% if shown_user.get_gender_display %}