This is the form:
from django.forms.extras.widgets import SelectDateWidget
class EntryForm(forms.ModelForm):
class Meta():
model = Entry
def __init__(self, *args, **kwargs):
super(EntryForm, self).__init__(*args, **kwargs)
this_year = datetime.date.today().year
years = range(this_year-100, this_year+1)
years.reverse()
self.fields["date_of_birth"].widget = SelectDateWidget(years=years)
Date of birth field is displayed like this

How can I change it so that it displays as day, month, year?
source
share