Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Improvements query, remove debug output

Roland Geider351c23945ed7
diff --git a/wger/manager/templates/schedule/view.html b/wger/manager/templates/schedule/view.html
index 57b4759f7..d443cf2d3 100644
--- a/wger/manager/templates/schedule/view.html
+++ b/wger/manager/templates/schedule/view.html
@@ -9,9 +9,7 @@
<script type="text/javascript">
function init_sortable()
{
- console.log('aaaa');
$("#schedule-table tbody").off();
- //$("#schedule-table tbody").sortable("destroy");
$("#schedule-table tbody").sortable({
handle: '.dragndrop-handle',
revert: true,
@@ -54,7 +52,7 @@ $(function() {
</tr>
</thead>
<tbody>
- {% for step in schedule.schedulestep_set.all %}
+ {% for step in schedule.schedulestep_set.select_related %}
<tr data-schedule-id="{{schedule.id}}" id="step-{{step.id}}">
<td>
<!-- {{ forloop.counter }} -->