Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Automatic linting

Github-actions4fd6b6039820
diff --git a/wger/manager/forms.py b/wger/manager/forms.py
index 3513102b7..ff5f73ce2 100644
--- a/wger/manager/forms.py
+++ b/wger/manager/forms.py
@@ -69,6 +69,7 @@ from wger.utils.widgets import (
class WorkoutForm(ModelForm):
+
class Meta:
model = Workout
fields = (
@@ -78,6 +79,7 @@ class WorkoutForm(ModelForm):
class WorkoutMakeTemplateForm(ModelForm):
+
class Meta:
model = Workout
fields = (
@@ -100,9 +102,10 @@ class WorkoutCopyForm(Form):
class DayForm(ModelForm):
+
class Meta:
model = Day
- exclude = ('training',)
+ exclude = ('training', )
widgets = {'day': TranslatedSelectMultiple()}
def __init__(self, *args, **kwargs):
@@ -148,6 +151,7 @@ class SetForm(ModelForm):
class SettingForm(ModelForm):
+
class Meta:
model = Setting
exclude = ('set', 'exercise', 'order', 'name')
@@ -194,7 +198,7 @@ class WorkoutLogForm(ModelForm):
class Meta:
model = WorkoutLog
- exclude = ('workout',)
+ exclude = ('workout', )
class WorkoutLogFormHelper(FormHelper):