title: Django how to manage format time with only hour and minute
body: <p>In django form, I would like an input for a time with a format only with hour and minutes.
   But I keep having second on my web page.
  Anyone could help
  Thank you</p>
  
  <p>models.py</p>
  
  <pre><code>Class Recettes(models.Model) :
      …
      temps_preparation = models.TimeField(
              db_column='Temps_Preparation',
              help_text = 'veuillez saisir le temps sous la forme heure:minute(HH:MM)',
              blank=True,
           null=True,
              ) 
  ….
  </code></pre>
  
  <p>settings.py</p>
  
  <pre><code>...
  TIME_INPUT_FORMATS = [ '%I:%M']
  </code></pre>
  
  <p>forms.py</p>
  
  <pre><code>class RecetteForm(forms.ModelForm) :
      temps_préparation = TimeField(input_formats = ['%H:%M',], label='Temps de préparation – HH:MM')
  </code></pre>