Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

There is no template to pass data to, so don't

Roland Geider9bca1e3df64b
diff --git a/manager/views.py b/manager/views.py
index 5d857b8ee..104e7a07a 100644
--- a/manager/views.py
+++ b/manager/views.py
@@ -362,12 +362,9 @@ def copy_workout(request, pk):
"""
Makes a copy of a workout
"""
- template_data = {}
- template_data['active_tab'] = WORKOUT_TAB
workout = get_object_or_404(TrainingSchedule, pk=pk, user=request.user)
- template_data['workout'] = workout
-
+
# Copy workout
days = workout.day_set.all()