Greetings, I am trying to implement a TimeField model which only consists of HH:MM (ie 16:46) format, I know it is possible to format a regular Python time object but I am lost
Django widget can be used to achieve this easily.
from django import forms class timeSlotForm(forms.Form): from_time = forms.TimeField(widget=forms.TimeInput(format='%H:%M'))