From 5ad656060f61a0dca77213014067c8cc509f9dc1 Mon Sep 17 00:00:00 2001 From: Christopher Charbonneau Wells Date: Sun, 14 Jan 2018 09:39:06 -0500 Subject: [PATCH] Fix bug keeping datetime input open after losing focus. --- core/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/forms.py b/core/forms.py index 464389aa..d7ba42db 100644 --- a/core/forms.py +++ b/core/forms.py @@ -50,7 +50,7 @@ class ChildForm(forms.ModelForm): fields.append('picture') widgets = { 'birth_date': forms.DateInput(attrs={ - 'class': 'datepicker-input', + 'class': 'datetimepicker-input', 'data-target': '#datetimepicker_date', }), } @@ -82,7 +82,7 @@ class DiaperChangeForm(forms.ModelForm): fields = ['child', 'time', 'wet', 'solid', 'color'] widgets = { 'time': forms.DateTimeInput(attrs={ - 'class': 'datepicker-input', + 'class': 'datetimepicker-input', 'data-target': '#datetimepicker_time', }), }