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

@ -51,7 +51,7 @@
<select name="T" id="id_type">
{% for value, type in account_types %}
<option value="{{ value }}"
{% if request.user.AccountType.ID == value %}
{% if user.AccountType.ID == value %}
selected="selected"
{% endif %}
>