Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Correctly set the categories

Roland Geiderf3a6057e9728
diff --git a/wger/manager/forms.py b/wger/manager/forms.py
index 626729824..c500704c0 100644
--- a/wger/manager/forms.py
+++ b/wger/manager/forms.py
@@ -98,7 +98,7 @@ class SetFormMobile(ModelForm):
exclude = ('order', 'exerciseday')
widgets = {'exercises': MultipleHiddenInput(), }
- categories_list = ModelChoiceField(ExerciseCategory.objects,
+ categories_list = ModelChoiceField(ExerciseCategory.objects.all(),
empty_label=_('All categories'),
label=_('Categories'),
widget=TranslatedSelect(),