Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Add height as a DecimalField to BmiForm

Laszlo Ratsko7ee381ea8c12
diff --git a/wger/nutrition/forms.py b/wger/nutrition/forms.py
index 7f5c6fdfe..77468d510 100644
--- a/wger/nutrition/forms.py
+++ b/wger/nutrition/forms.py
@@ -55,6 +55,8 @@ class UnitChooserForm(forms.Form):
class BmiForm(forms.ModelForm):
+ height = forms.DecimalField(widget=Html5NumberInput(),
+ max_value=999)
weight = forms.DecimalField(widget=Html5NumberInput(),
max_value=999)