Fix some tests

And some things that were actually borked
This commit is contained in:
2020-05-24 22:04:00 +01:00
parent c9ea1bb75d
commit 544b6df35c
8 changed files with 67 additions and 66 deletions

View File

@@ -7,7 +7,11 @@
{% if create or edit or duplicate %}
<div class="form-group" id="parent-group">
<label for="selectpicker">Set Parent</label>
{% include 'partials/asset_picker.html' %}
<select name="parent" id="parent_id" class="form-control selectpicker" data-live-search="true">
{% if object.parent %}
<option value="{{object.parent.pk}}" selected>{{object.parent.description}}</option>
{% endif %}
</select>
</div>
{% else %}
<dl>