diff --git a/openslides/participant/templates/participant/overview.html b/openslides/participant/templates/participant/overview.html index 1685bbadb..f8cf678ba 100644 --- a/openslides/participant/templates/participant/overview.html +++ b/openslides/participant/templates/participant/overview.html @@ -56,11 +56,7 @@ {{ user.first_name }} {{ user.last_name }} {{ user.profile.group }} - {% if user.profile.type == "delegate" %}{% trans "Delegate" %}{% endif %} - {% if user.profile.type == "observer" %}{% trans "Observer" %}{% endif %} - {% if user.profile.type == "staff" %}{% trans "Staff" %}{% endif %} - {% if user.profile.type == "guest" %}{% trans "Guest" %}{% endif %} - + {{ user.profile.get_type_display }} {{ user.profile.committee }} {% if perms.participant.can_manage_participant %} {{ user.username }} diff --git a/openslides/utils/pdf.py b/openslides/utils/pdf.py index f0132eb2e..b0f283a5f 100755 --- a/openslides/utils/pdf.py +++ b/openslides/utils/pdf.py @@ -271,7 +271,7 @@ def print_userlist(request): Paragraph(user.last_name, stylesheet['Tablecell']), Paragraph(user.first_name, stylesheet['Tablecell']), Paragraph(user.profile.group, stylesheet['Tablecell']), - Paragraph(user.profile.type, stylesheet['Tablecell']), + Paragraph(user.profile.get_type_display(), stylesheet['Tablecell']), Paragraph(user.profile.committee, stylesheet['Tablecell']), ]) except Profile.DoesNotExist: