Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Delete the exercise bases, not the translations

Roland Geider8df05e4f641a
diff --git a/wger/exercises/migrations/0018_delete_pending_exercises.py b/wger/exercises/migrations/0018_delete_pending_exercises.py
index 1088e4974..3a7bd6d77 100644
--- a/wger/exercises/migrations/0018_delete_pending_exercises.py
+++ b/wger/exercises/migrations/0018_delete_pending_exercises.py
@@ -11,7 +11,7 @@ def delete_pending_exercises(apps, schema_editor):
Note that we can't access STATUS_PENDING here because we are not using
a real model.
"""
- Exercise = apps.get_model("exercises", "Exercise")
+ Exercise = apps.get_model("exercises", "ExerciseBase")
Exercise.objects.filter(status='1').delete()