FIX(T): 500 error editing training item qualifications

For the second time with this piece of functionality...how did that ever work?
This commit is contained in:
2022-03-06 17:30:11 +00:00
parent 00eb4e0e27
commit 2869c9fcc3
3 changed files with 16 additions and 10 deletions

View File

@@ -2,7 +2,7 @@
<label for="item_id" class="col col-form-label">Item</label>
<select name="item" id="item_id" class="selectpicker col-sm-10 px-0" data-live-search="true" data-sourceurl="{% url 'api_secure' model='training_item' %}?fields=display_id,description&filters=active" required>
{% if item %}
<option value="{{form.item.pk}}" selected>{{item}}</option>
<option value="{{form.item.value}}" selected>{{item}}</option>
{% endif %}
</select>
</div>