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

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -