fix(routers.accounts): use target user's account type for autofill

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-12-16 16:10:01 -08:00
parent e17389485b
commit 94e8d34948
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
3 changed files with 72 additions and 9 deletions

View file

@ -170,7 +170,7 @@ def make_account_form_context(context: dict,
context = copy.copy(context)
context["account_types"] = [
(at.USER_ID, "Normal User"),
(at.USER_ID, f"Normal {at.USER}"),
(at.TRUSTED_USER_ID, at.TRUSTED_USER)
]