mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-01-29 05:04:38 +00:00
Order accounts by name on 'New Domain' and domain admin
This commit is contained in:
parent
4e63f8380b
commit
9946f72a85
@ -235,7 +235,7 @@ def add():
|
|||||||
abort(500)
|
abort(500)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
accounts = Account.query.all()
|
accounts = Account.query.order_by(Account.name).all()
|
||||||
return render_template('domain_add.html',
|
return render_template('domain_add.html',
|
||||||
templates=templates,
|
templates=templates,
|
||||||
accounts=accounts)
|
accounts=accounts)
|
||||||
@ -267,7 +267,7 @@ def setting(domain_name):
|
|||||||
if not domain:
|
if not domain:
|
||||||
abort(404)
|
abort(404)
|
||||||
users = User.query.all()
|
users = User.query.all()
|
||||||
accounts = Account.query.all()
|
accounts = Account.query.order_by(Account.name).all()
|
||||||
|
|
||||||
# get list of user ids to initialize selection data
|
# get list of user ids to initialize selection data
|
||||||
d = Domain(name=domain_name)
|
d = Domain(name=domain_name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user