Prefill domain forms

master
Pierre Jaury 9 years ago
parent a5279b7757
commit 99cf0b2031

@ -33,7 +33,7 @@ def domain_create():
def domain_edit(domain_name): def domain_edit(domain_name):
utils.require_global_admin() utils.require_global_admin()
domain = utils.get_domain_admin(domain_name) domain = utils.get_domain_admin(domain_name)
form = forms.DomainEditForm() form = forms.DomainEditForm(obj=domain)
if form.validate_on_submit(): if form.validate_on_submit():
domain.max_users = form.max_users.data domain.max_users = form.max_users.data
domain.max_aliases = form.max_aliases.data domain.max_aliases = form.max_aliases.data

Loading…
Cancel
Save