How to get a time widget in django forms? -
i know can have date widget in django.
birth_year = forms.datefield(widget=selectdatewidget(years=birth_year_choices))
is there similar selecting time in django?
you're looking datetime field.
birth_time=forms.datetime()
for more info: https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.datetimefield
Comments
Post a Comment