Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django form datepicker

class PromiseForm(ModelForm):

    class Meta:
        model = Promise
        fields = ['title', 'description', 'made_on']
        widgets = {
            'made_on': DateInput(attrs={'type': 'date'}),
        }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #form #datepicker
ADD COMMENT
Topic
Name
1+2 =