Show role description in user edit form
This commit is contained in:
parent
c549745ef6
commit
ab1a600c9e
|
@ -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"
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue