I have a DateField
thing inside my models.py file. Is it possible to import the widget or something?
due_date = models.DateField('Deadline: ', blank=True, default=datetime.datetime.today, widget=forms.SelectDateWidget())
This doesn’t work because I get this error:
TypeError: __init__() got an unexpected keyword argument 'widget'
It works though if it’s under a class that takes forms.ModelForm
as its parameter.