Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Correctly output exercise name in the weight logs

Roland Geider204b3e91a42a
diff --git a/wger/manager/templates/workout/log.html b/wger/manager/templates/workout/log.html
index 7cf08a025..57d8145a5 100644
--- a/wger/manager/templates/workout/log.html
+++ b/wger/manager/templates/workout/log.html
@@ -52,12 +52,12 @@
{% endif %}
{% for set in day.set_list %}
- {% for exercise in set.exercise_list %}
+ {% for base in set.exercise_list %}
{% with day_list=workout_log|get_item:day.obj.id %}
- {% with exercise_list=day_list|get_item:exercise.obj.id %}
+ {% with exercise_list=day_list|get_item:base.obj.id %}
- <h5 class="mt-4">{{ exercise.obj.name }}</h5>
+ <h5 class="mt-4">{{ base.obj.get_exercise.name }}</h5>
{% if exercise_list.log_by_date %}
{# TODO: perhaps move the draw_weight_chart function to render_weight_log #}
{% with list=exercise_list.log_by_date %}