fix: /account/{name}/edit Account Type selection

The "Account Type" selection was not properly being rendered
due to an incorrect equality. This has been fixed in
templates/partials/account_form.html.

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-09-08 17:36:37 -07:00
parent 0fd31b8d36
commit ad3016ef4f
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

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