Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Add new fields to ingredient form

Roland Geideref4446cc72fe
diff --git a/wger/nutrition/forms.py b/wger/nutrition/forms.py
index ea7c634d4..32ec900fc 100644
--- a/wger/nutrition/forms.py
+++ b/wger/nutrition/forms.py
@@ -308,6 +308,8 @@ class IngredientForm(forms.ModelForm):
'sodium',
'license',
'license_author',
+ 'is_vegan',
+ 'is_vegetarian',
)
widgets = {'category': forms.TextInput}
@@ -334,6 +336,11 @@ class IngredientForm(forms.ModelForm):
),
'fiber',
'sodium',
+ Row(
+ Column('is_vegan', css_class='col-6'),
+ Column('is_vegetarian', css_class='col-6'),
+ css_class='form-row',
+ ),
Row(
Column('license', css_class='col-6'),
Column('license_author', css_class='col-6'),