Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Ingredient search field is not required

Roland Geiderd837cfacfb98
diff --git a/wger/nutrition/forms.py b/wger/nutrition/forms.py
index 87ef3f253..11f4119a2 100644
--- a/wger/nutrition/forms.py
+++ b/wger/nutrition/forms.py
@@ -212,7 +212,7 @@ class MealItemForm(forms.ModelForm):
ingredient = forms.ModelChoiceField(queryset=Ingredient.objects.all(),
widget=forms.HiddenInput)
- ingredient_searchfield = forms.CharField()
+ ingredient_searchfield = forms.CharField(required=False)
class Meta:
model = MealItem