On Monday 24 April 2017 17:26:20 shahab emami wrote:
> class ProfileForm(ModelForm):
> birth_date= forms.DateField(widget=forms.SelectDateWidget)
> class Meta:
> model = Member
> exclude = ()
>
>
> then i expect a dropdownlist for birth_date in template but it is only
> a regular input
Did you set the form_class attribute?
--
Melvyn Sopacua
No comments:
Post a Comment