Refactored away "assets" property on "Supplier" by using "related_name" instead

This commit is contained in:
Matthew Smith
2020-01-03 21:33:23 +00:00
parent 096ca24336
commit 5696cf73ce
3 changed files with 21 additions and 10 deletions

View File

@@ -44,7 +44,7 @@
</tr>
</thead>
<tbody id="asset_table_body">
{% with object.assets as object_list %}
{% with object.assets.all as object_list %}
{% include 'partials/asset_list_table_body.html' %}
{% endwith %}
</tbody>