From 9946f72a85aa00e0de22078d5203a8a0f16b6783 Mon Sep 17 00:00:00 2001 From: Manuel Frei Date: Sun, 28 Jun 2020 01:59:12 +0200 Subject: [PATCH] Order accounts by name on 'New Domain' and domain admin --- powerdnsadmin/routes/domain.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/powerdnsadmin/routes/domain.py b/powerdnsadmin/routes/domain.py index 9aaad31..7ad030e 100644 --- a/powerdnsadmin/routes/domain.py +++ b/powerdnsadmin/routes/domain.py @@ -235,7 +235,7 @@ def add(): abort(500) else: - accounts = Account.query.all() + accounts = Account.query.order_by(Account.name).all() return render_template('domain_add.html', templates=templates, accounts=accounts) @@ -267,7 +267,7 @@ def setting(domain_name): if not domain: abort(404) 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 d = Domain(name=domain_name)