mirror of https://github.com/snachodog/mybuddy.git
modify pumping form to add start/end/duration
This commit is contained in:
parent
3430f2b34f
commit
1391819548
|
@ -150,10 +150,11 @@ class TaggableModelForm(forms.ModelForm):
|
||||||
class PumpingForm(CoreModelForm, TaggableModelForm):
|
class PumpingForm(CoreModelForm, TaggableModelForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = models.Pumping
|
model = models.Pumping
|
||||||
fields = ["child", "amount", "time", "notes", "tags"]
|
fields = ["child", "start", "end", "amount", "notes", "tags"]
|
||||||
widgets = {
|
widgets = {
|
||||||
"child": ChildRadioSelect,
|
"child": ChildRadioSelect,
|
||||||
"time": DateTimeInput(),
|
"start": DateTimeInput(),
|
||||||
|
"end": DateTimeInput(),
|
||||||
"notes": forms.Textarea(attrs={"rows": 5}),
|
"notes": forms.Textarea(attrs={"rows": 5}),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue