From cbe9b54490e162a47a420d8453eb6aa3fdbf150d Mon Sep 17 00:00:00 2001 From: Trupti Rajesh Kini Date: Tue, 11 Jul 2017 13:52:20 +0530 Subject: date is in the form of calendar --- tbc/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tbc/forms.py') 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'}), } -- cgit