1class PromiseForm(ModelForm):
2
3 class Meta:
4 model = Promise
5 fields = ['title', 'description', 'made_on']
6 widgets = {
7 'made_on': DateInput(attrs={'type': 'date'}),
8 }
9
1from .models import Hello
2from django import forms
3from bootstrap_datepicker_plus import DatePickerInput
4
5class CreateForm(forms.ModelForm):
6 class Meta:
7 model = Hello
8 fields =[
9 "Date",
10 ]
11
12 widgets = {
13 'Date': DatePickerInput(),
14 }
15