Add record_quick_edit config to DB

This commit is contained in:
Khanh Ngo 2018-09-02 08:03:01 +07:00
parent 3481af149b
commit 615413ae90
No known key found for this signature in database
GPG Key ID: B9AE3BAF6D5A7B22
3 changed files with 3 additions and 2 deletions

View File

@ -1796,7 +1796,7 @@ class Setting(db.Model):
'default_record_table_size': 15, 'default_record_table_size': 15,
'default_domain_table_size': 10, 'default_domain_table_size': 10,
'auto_ptr': False, 'auto_ptr': False,
'allow_quick_edit': True, 'record_quick_edit': True,
'pretty_ipv6_ptr': False, 'pretty_ipv6_ptr': False,
'dnssec_admins_only': False, 'dnssec_admins_only': False,
'allow_user_create_domain': False, 'allow_user_create_domain': False,

View File

@ -567,7 +567,7 @@ def domain(domain_name):
# can not get any record, API server might be down # can not get any record, API server might be down
return redirect(url_for('error', code=500)) return redirect(url_for('error', code=500))
quick_edit = Setting().get('allow_quick_edit') quick_edit = Setting().get('record_quick_edit')
records_allow_to_edit = Setting().get_records_allow_to_edit() records_allow_to_edit = Setting().get_records_allow_to_edit()
forward_records_allow_to_edit = Setting().get_forward_records_allow_to_edit() forward_records_allow_to_edit = Setting().get_forward_records_allow_to_edit()
reverse_records_allow_to_edit = Setting().get_reverse_records_allow_to_edit() reverse_records_allow_to_edit = Setting().get_reverse_records_allow_to_edit()

View File

@ -29,6 +29,7 @@ def update_data():
[ [
{'id': 44, 'name': 'ldap_operator_group', 'value': '', 'view': 'authentication'}, {'id': 44, 'name': 'ldap_operator_group', 'value': '', 'view': 'authentication'},
{'id': 45, 'name': 'allow_user_create_domain', 'value': 'False', 'view': 'basic'}, {'id': 45, 'name': 'allow_user_create_domain', 'value': 'False', 'view': 'basic'},
{'id': 46, 'name': 'record_quick_edit', 'value': 'True', 'view': 'basic'},
] ]
) )