SQL optimisation of detailed training record

This commit is contained in:
2021-12-28 12:13:08 +00:00
parent 7c830ee7e5
commit 732affa0b2
3 changed files with 6 additions and 3 deletions

View File

@@ -22,7 +22,7 @@
</thead>
<tbody>
{% for object in object_list %}
<tr id="row_item">
<tr id="row_item" {% if request.user.is_superuser and not object.item.active %}class="text-warning"{%endif%}>
<th scope="row" class="align-middle" id="cell_name">{{ object.item }}</th>
<td class="table-{% colour_from_depth object.depth %}">{{ object.get_depth_display }}</td>
<td>{{ object.date }}</td>