title: How to use TimeInput widget in Django forms?
body: <p>TimeInput is not working for the form given below. But SelectDateWidget() works fine. No error is created for current TimeInput() widget.</p>
  
  <p>Suggest the correct way to use TimeInput widget.</p>
  
  <p><strong>forms.py</strong></p>
  
  <pre><code>class TournmentDetails(forms.ModelForm):
  
      class Meta():
          model = Tournament
          fields = ('eventname','venue','date','time')
  
          widgets = {
              'date': forms.SelectDateWidget(
                   empty_label=("Choose Year", "Choose Month", "Choose Day"),
              ),
              'time': forms.TimeInput(format='%H:%M'),
          }
  </code></pre>
  
  <p><strong>models.py</strong></p>
  
  <pre><code>class Tournament(models.Model):
      eventname = models.CharField(max_length=30, default="None", choices = EVENT_CHOICES)
      venue = models.CharField(max_length=30)
      date = models.DateField(max_length=30)
      time = models.TimeField(max_length=30)
  </code></pre>