Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Set max value on weight in BmiForm

Roland Geider4d42f746b3fc
diff --git a/wger/nutrition/forms.py b/wger/nutrition/forms.py
index 9448ec7c6..545513155 100644
--- a/wger/nutrition/forms.py
+++ b/wger/nutrition/forms.py
@@ -55,7 +55,8 @@ class UnitChooserForm(forms.Form):
class BmiForm(forms.ModelForm):
- weight = forms.DecimalField(widget=Html5NumberInput())
+ weight = forms.DecimalField(widget=Html5NumberInput(),
+ max_value=999)
class Meta:
model = UserProfile