Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Drop the ineffective bounds on the BMR weight field

Roland Geidera0767a649baf
diff --git a/wger/nutrition/forms.py b/wger/nutrition/forms.py
index 9235e5f94..e617d2bb0 100644
--- a/wger/nutrition/forms.py
+++ b/wger/nutrition/forms.py
@@ -132,8 +132,6 @@ class BmrForm(forms.ModelForm):
# The weight is written back as a measurement, so it is bounded like
# one. Unbounded, the prefilled 0 of a user without entries was stored
limits = limits_for(MetricType.BODY_WEIGHT, self.instance.weight_unit)
- self.fields['weight'].min_value = limits.min
- self.fields['weight'].max_value = limits.max
self.fields['weight'].validators += [
MinValueValidator(limits.min),
MaxValueValidator(limits.max),