Fix bug keeping datetime input open after losing focus.

This commit is contained in:
Christopher Charbonneau Wells 2018-01-14 09:39:06 -05:00
parent e04d5ece00
commit 5ad656060f
1 changed files with 2 additions and 2 deletions

View File

@ -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',
}),
}