diff options
author | Trupti Rajesh Kini | 2017-07-11 14:19:01 +0530 |
---|---|---|
committer | GitHub | 2017-07-11 14:19:01 +0530 |
commit | 6255c5050f3e414ecee8fc63cf8ee61c66b94180 (patch) | |
tree | f780d2840e9d7fd7ba3a8a29d1c3aab93ae17716 | |
parent | ede9ae004d41d6fb8f71f9bd9f4e8668d7416fbb (diff) | |
parent | cbe9b54490e162a47a420d8453eb6aa3fdbf150d (diff) | |
download | Python-TBC-Interface-6255c5050f3e414ecee8fc63cf8ee61c66b94180.tar.gz Python-TBC-Interface-6255c5050f3e414ecee8fc63cf8ee61c66b94180.tar.bz2 Python-TBC-Interface-6255c5050f3e414ecee8fc63cf8ee61c66b94180.zip |
Merge pull request #44 from FOSSEE/kinitrupti-book-details
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'}), } |