Self hosted FLOSS fitness/workout, nutrition and weight tracker
Explicitly set 'exclude' for ModelForms
Roland Geider85ebd10d625a
diff --git a/wger/manager/forms.py b/wger/manager/forms.pyindex 71b3d3fdb..a0c62a22b 100644--- a/wger/manager/forms.py+++ b/wger/manager/forms.py@@ -154,6 +154,7 @@ class WorkoutSessionHiddenFieldsForm(ModelForm):'''class Meta:model = WorkoutSession+ exclude = []widgets = {'time_start': widgets.HiddenInput(),'time_end': widgets.HiddenInput(),'user': widgets.HiddenInput(),diff --git a/wger/nutrition/views/meal_item.py b/wger/nutrition/views/meal_item.pyindex 46fdccbb1..41457229c 100644--- a/wger/nutrition/views/meal_item.py+++ b/wger/nutrition/views/meal_item.py@@ -49,6 +49,7 @@ class MealItemForm(forms.ModelForm):class Meta:model = MealItem+ exclude = []def __init__(self, *args, **kwargs):super(MealItemForm, self).__init__(*args, **kwargs)diff --git a/wger/weight/forms.py b/wger/weight/forms.pyindex 5ba556162..666b24d05 100644--- a/wger/weight/forms.py+++ b/wger/weight/forms.py@@ -44,6 +44,7 @@ class WeightForm(ModelForm):class Meta:model = WeightEntry+ exclude = []widgets = {'user': widgets.HiddenInput(),}