admin: don't fail on duplicated role names when editing an user (#8443)

This commit is contained in:
Frédéric Péters 2015-09-30 18:50:04 +02:00
parent 90cc04bdcb
commit b707e9591e
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class UserUI(object):
add_element_label = _('Add Role'),
element_kwargs = {
'render_br': False,
'options': [(None, '---')] + [(x.id, x.name) for x in roles]})
'options': [(None, '---', None)] + [(x.id, x.name, x.id) for x in roles]})
for klass in [x for x in qommon.ident.get_method_classes() if x.key in ident_methods]:
if klass.method_admin_widget: