From d5e9332c793ef9bc46b0505d2a30c687814b5786 Mon Sep 17 00:00:00 2001 From: jiany18 <60591522+jiany18@users.noreply.github.com> Date: Thu, 5 May 2022 20:51:27 -0500 Subject: [PATCH 1/2] add units --- wger/nutrition/forms.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wger/nutrition/forms.py b/wger/nutrition/forms.py index e8d947938..fdb9a8344 100644 --- a/wger/nutrition/forms.py +++ b/wger/nutrition/forms.py @@ -101,6 +101,7 @@ class BmiForm(forms.ModelForm): weight = forms.DecimalField( widget=Html5NumberInput(), max_value=999, + label=_('Weight (kg)'), ) class Meta: From 1e1d5ca5fbb808966f26a0d398c4a2569c5add81 Mon Sep 17 00:00:00 2001 From: jiany18 <60591522+jiany18@users.noreply.github.com> Date: Thu, 5 May 2022 20:51:59 -0500 Subject: [PATCH 2/2] add units --- wger/weight/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wger/weight/models.py b/wger/weight/models.py index 0313c9ac6..a6abd5985 100644 --- a/wger/weight/models.py +++ b/wger/weight/models.py @@ -31,7 +31,7 @@ class WeightEntry(models.Model): """ date = models.DateField(verbose_name=_('Date')) weight = models.DecimalField( - verbose_name=_('Weight'), + verbose_name=_('Weight (kg)'), max_digits=5, decimal_places=2, validators=[MinValueValidator(30), MaxValueValidator(600)]