From ab1a600c9e9ac445d7620d62513bdeeb5f645746 Mon Sep 17 00:00:00 2001 From: shagi Date: Tue, 11 May 2021 16:08:25 +0200 Subject: [PATCH] Show role description in user edit form --- gas/locale/es/LC_MESSAGES/django.po | 2 +- gas/sites.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gas/locale/es/LC_MESSAGES/django.po b/gas/locale/es/LC_MESSAGES/django.po index 1d0d186..a7a9e18 100644 --- a/gas/locale/es/LC_MESSAGES/django.po +++ b/gas/locale/es/LC_MESSAGES/django.po @@ -82,7 +82,7 @@ msgstr "Crear" #: gas/users/views.py:55 msgid "Update user" -msgstr "Actulizar usuario" +msgstr "Actualizar usuario" #: gas/users/views.py:56 msgid "User updated" diff --git a/gas/sites.py b/gas/sites.py index 94f02dc..b5cebb1 100644 --- a/gas/sites.py +++ b/gas/sites.py @@ -77,8 +77,8 @@ class GASSite(object): @property def role_choices(self): return [ - (role, role) - for role in self._registry['roles'] + (role, f"{role}: {description}") + for role, description in self._registry['roles'].items() ] def get_role_description(self, role):