diff options
author | Trupti Rajesh Kini | 2017-07-11 13:52:20 +0530 |
---|---|---|
committer | GitHub | 2017-07-11 13:52:20 +0530 |
commit | cbe9b54490e162a47a420d8453eb6aa3fdbf150d (patch) | |
tree | 410b702185afeaf34565a00e9e8b30b67d0b6468 | |
parent | d5f9e5daa3f67887b7b788f560e7c6993b394c40 (diff) | |
download | Python-TBC-Interface-cbe9b54490e162a47a420d8453eb6aa3fdbf150d.tar.gz Python-TBC-Interface-cbe9b54490e162a47a420d8453eb6aa3fdbf150d.tar.bz2 Python-TBC-Interface-cbe9b54490e162a47a420d8453eb6aa3fdbf150d.zip |
date is in the form of calendar
-rw-r--r-- | tbc/forms.py | 4 |
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'}), } |