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
msgid "Update user"
msgstr "Actulizar usuario"
msgstr "Actualizar usuario"
#: gas/users/views.py:56
msgid "User updated"

View File

@ -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):