Show role description in user edit form

This commit is contained in:
Ales (Shagi) Zabala Alava 2021-05-11 16:08:25 +02:00
parent c549745ef6
commit ab1a600c9e
2 changed files with 3 additions and 3 deletions

View File

@ -82,7 +82,7 @@ msgstr "Crear"
#: gas/users/views.py:55 #: gas/users/views.py:55
msgid "Update user" msgid "Update user"
msgstr "Actulizar usuario" msgstr "Actualizar usuario"
#: gas/users/views.py:56 #: gas/users/views.py:56
msgid "User updated" msgid "User updated"

View File

@ -77,8 +77,8 @@ class GASSite(object):
@property @property
def role_choices(self): def role_choices(self):
return [ return [
(role, role) (role, f"{role}: {description}")
for role in self._registry['roles'] for role, description in self._registry['roles'].items()
] ]
def get_role_description(self, role): def get_role_description(self, role):