Fix associated events being discarded on subhire edit

This commit is contained in:
2022-12-16 14:14:43 +00:00
parent e100f5a1d4
commit 311c02d554
3 changed files with 9 additions and 3 deletions

View File

@@ -48,7 +48,7 @@
<h4>Event Items</h4>
</div>
{% include 'partials/item_table.html' %}
{% if event.subhire_set %}
{% if event.subhire_set.count > 0 %}
<div class="card-body"><h4>Associated Subhires</h4></div>
{% with event.subhire_set.all as events %}
{% include 'partials/event_table.html' %}