Skip to content

Commit f231170

Browse files
committed
Correctly copy the max sets configs
1 parent 4e156d9 commit f231170

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

wger/manager/views/routine.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
SlotEntry,
3535
)
3636

37-
3837
logger = logging.getLogger(__name__)
3938

4039

@@ -101,7 +100,7 @@ def copy_config(configs: List[AbstractChangeConfig], slot_entry: SlotEntry):
101100
copy_config(current_entry.restconfig_set.all(), slot_entry_copy)
102101
copy_config(current_entry.maxrestconfig_set.all(), slot_entry_copy)
103102

104-
copy_config(current_entry.maxrestconfig_set.all(), slot_entry_copy)
105103
copy_config(current_entry.setsconfig_set.all(), slot_entry_copy)
104+
copy_config(current_entry.maxsetsconfig_set.all(), slot_entry_copy)
106105

107106
return HttpResponseRedirect(routine_copy.get_absolute_url())

0 commit comments

Comments
 (0)