From 1391819548a97686355cc2cb17526f23995d739b Mon Sep 17 00:00:00 2001 From: John Merlie Date: Fri, 16 Jun 2023 17:07:00 -0400 Subject: [PATCH] modify pumping form to add start/end/duration --- core/forms.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/forms.py b/core/forms.py index ffee09d2..49341287 100644 --- a/core/forms.py +++ b/core/forms.py @@ -150,10 +150,11 @@ class TaggableModelForm(forms.ModelForm): class PumpingForm(CoreModelForm, TaggableModelForm): class Meta: model = models.Pumping - fields = ["child", "amount", "time", "notes", "tags"] + fields = ["child", "start", "end", "amount", "notes", "tags"] widgets = { "child": ChildRadioSelect, - "time": DateTimeInput(), + "start": DateTimeInput(), + "end": DateTimeInput(), "notes": forms.Textarea(attrs={"rows": 5}), }