title: DateField -- "enter a valid date" message
body: <p>I'm a bit confused as why it keeps returning the 'enter a valid date' message. Is it my formatting?</p>
  
  <p>I've tried different combinations of %m-%d-%Y, but still no luck. </p>
  
  <p>models.py</p>
  
  <pre><code>class DeliveryDate(models.Model):
      cart = models.ForeignKey('Cart', null=True, blank=True)
      date = models.DateField()
  
      def __str__(self):
          return str(self.cart.id)
          return self.date
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>def add_delivery_date(request):
  
      the_id = request.session['cart_id']
      cart = Cart.objects.get(id=the_id)
  
      form = DeliveryDateForm(request.POST or None)
  
      if request.method == "POST":
          if form.is_valid():
              delivery_date = form.save(commit=False)
              date = request.POST['date']
  
              delivery_date = DeliveryDate.objects.create(cart=cart, date=date)
              delivery_date.save()
  
              return HttpResponseRedirect('thank-you.html')
  
      context = {
          "form": form
      }
  
  
      return render(request, 'choose_delivery_date.html', context)
  </code></pre>
  
  <p>forms.py</p>
  
  <pre><code>class DeliveryDateForm(forms.ModelForm):
      date = forms.DateField(input_formats=['%m %d %Y'], widget=SelectDateWidget, initial=datetime.date.today())
  
      class Meta:
          model = DeliveryDate
          fields = ['date']
  </code></pre>