Somewhat optimised SQL on level detail

This commit is contained in:
2021-12-28 21:35:21 +00:00
parent 732affa0b2
commit 14b73f6f50
6 changed files with 15 additions and 37 deletions

View File

@@ -70,7 +70,7 @@
<div class="alert alert-warning mx-auto">No qualifications in any levels yet...did someone forget to fill out the paperwork?</div>
{% endfor %}
</ul>
<h3>In Progress</h3>
<h3 class="col-12 pt-2">In Progress</h3>
<div class="card-columns">
{% for level in started_levels %}
{% percentage_complete level object as completion %}

View File

@@ -26,7 +26,7 @@
<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>
<td>{{ object.supervisor }}</td>
<td><a href="{{ object.supervisor.get_absolute_url}}">{{ object.supervisor }}</a></td>
<td>{{ object.notes }}</td>
</tr>
{% empty %}