Self hosted FLOSS fitness/workout, nutrition and weight tracker
Correctly copy the max sets configs
Roland Geiderf23117001c83
diff --git a/wger/manager/views/routine.py b/wger/manager/views/routine.pyindex 4b00c320b..925712117 100644--- a/wger/manager/views/routine.py+++ b/wger/manager/views/routine.py@@ -34,7 +34,6 @@ from wger.manager.models import (SlotEntry,)-logger = logging.getLogger(__name__)@@ -101,7 +100,7 @@ def copy_routine(request, pk):copy_config(current_entry.restconfig_set.all(), slot_entry_copy)copy_config(current_entry.maxrestconfig_set.all(), slot_entry_copy)- copy_config(current_entry.maxrestconfig_set.all(), slot_entry_copy)copy_config(current_entry.setsconfig_set.all(), slot_entry_copy)+ copy_config(current_entry.maxsetsconfig_set.all(), slot_entry_copy)return HttpResponseRedirect(routine_copy.get_absolute_url())