summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tbc/forms.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tbc/forms.py b/tbc/forms.py
index effe45b..dbb9095 100644
--- a/tbc/forms.py
+++ b/tbc/forms.py
@@ -71,6 +71,6 @@ class BookForm(forms.ModelForm):
'edition':forms.TextInput(attrs={'placeholder':'Edition of the Book'}),
'year_of_pub':forms.TextInput(attrs={'placeholder':'Year when the Book was published'}),
'no_chapters':forms.TextInput(attrs={'placeholder':'Total number of chapters in the Book (only include chapters that have solved examples)'}),
- 'start_time': forms.DateInput(attrs={'class':'datepicker', 'placeholder':'mm/dd/yyyy'}),
- 'end_time': forms.DateInput(attrs={'class':'datepicker', 'placeholder':'mm/dd/yyyy'}),
+ 'start_date': forms.widgets.DateInput(attrs={'type': 'date'}),
+ 'end_date': forms.widgets.DateInput(attrs={'type': 'date'}),
}