Fixes in sql and ausers
This commit is contained in:
parent
06b42239d9
commit
3d2eb64808
6 changed files with 71 additions and 28 deletions
|
|
@ -18,10 +18,18 @@ def ausers():
|
|||
|
||||
user_admin.fields['privileges'].name_form=SelectForm
|
||||
|
||||
user_admin.create_forms(['username', 'password', 'email', 'privileges', 'lang'])
|
||||
user_admin.fields['disabled'].name_form=SelectForm
|
||||
|
||||
user_admin.fields['double_auth'].name_form=SelectForm
|
||||
|
||||
user_admin.create_forms(['username', 'password', 'email', 'privileges', 'lang', 'disabled', 'double_auth'])
|
||||
|
||||
user_admin.forms['privileges'].arr_select={0: I18n.lang('admin', 'without_privileges', 'Without privileges'), 1: I18n.lang('admin', 'selected_privileges', 'Selected privileges'), 2: I18n.lang('admin', 'administrator', 'Administrator')}
|
||||
|
||||
user_admin.forms['disabled'].arr_select={0: I18n.lang('admin', 'user_enabled', 'User enabled'), 1: I18n.lang('admin', 'user_disabled', 'User disabled')}
|
||||
|
||||
user_admin.forms['double_auth'].arr_select={0: I18n.lang('admin', 'no', 'No'), 1: I18n.lang('admin', 'yes', 'Yes')}
|
||||
|
||||
user_admin.fields['password'].protected=False
|
||||
|
||||
user_admin.check_user=False
|
||||
|
|
@ -31,11 +39,11 @@ def ausers():
|
|||
|
||||
admin=GenerateAdminClass(user_admin, url, t)
|
||||
|
||||
admin.list.fields_showed=['username', 'privileges']
|
||||
admin.list.fields_showed=['username']
|
||||
|
||||
admin.list.search_fields=['username']
|
||||
|
||||
admin.arr_fields_edit=['username', 'password', 'repeat_password', 'email', 'privileges', 'lang']
|
||||
admin.arr_fields_edit=['username', 'password', 'repeat_password', 'email', 'lang', 'double_auth', 'disabled']
|
||||
|
||||
form_admin=admin.show()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue