Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Fix add workout modal

Tom Bowyeree614b1fbc3b
diff --git a/wger/manager/forms.py b/wger/manager/forms.py
index 7a3d5030a..e0967c676 100644
--- a/wger/manager/forms.py
+++ b/wger/manager/forms.py
@@ -105,6 +105,14 @@ class DayForm(ModelForm):
exclude = ('training', )
widgets = {'day': TranslatedSelectMultiple()}
+ def __init__(self, *args, **kwargs):
+ super().__init__(*args, **kwargs)
+ self.helper = FormHelper()
+ self.helper.layout = Layout(
+ 'description',
+ 'day',
+ )
+
class OrderedModelMultipleChoiceField(ModelMultipleChoiceField):
"""Ordered multiple choice field"""
diff --git a/wger/manager/views/day.py b/wger/manager/views/day.py
index 78bd8eb2f..1ae28d45a 100644
--- a/wger/manager/views/day.py
+++ b/wger/manager/views/day.py
@@ -64,7 +64,7 @@ class DayView(WgerFormMixin, LoginRequiredMixin):
def get_form(self, form_class=DayForm):
"""
- Filter the days of the week that are alreeady used by other days
+ Filter the days of the week that are already used by other days
"""
# Get the form