title: Checkout form not getting saved
body: <p>I'm trying to develop an e-commerce site with Django. So I'm at this point where, users can add items to their cart, proceed to checkout but for some reason, my checkout form is not being saved.</p>
  
  <p>I made sure that I have registered my models, and ran migrations, but every time I fill out my form and go to check in my admin panel, it says: 0 user addresses. What is the problem?</p>
  
  <p>My views.py:</p>
  
  <pre><code>@login_required()
  def checkout(request):
      address_form = UserAddressForm(request.POST or None)
      if address_form.is_valid():
          new_address = address_form.save(commit= False)
          new_address.user = request.user
          new_address.save()
          return HttpResponseRedirect('/')
      else:
          raise Http404
      context = {"address_form": address_form}
      template = "orders/checkout.html"
      return render(request, template, context)
  </code></pre>
  
  <p>My checkout.html:</p>
  
  <pre><code>&lt;form method="POST" action="{% url 'ajax_add_user_address' %}?redirect=checkout"&gt;
      {% csrf_token %}
      &lt;fieldset class="form-group"&gt;   
          {{ address_form|crispy }}
      &lt;/fieldset&gt;
      &lt;div class="form-group"&gt;
          &lt;input type="submit" class="btn btn-outline-dark" value="Place Order"/&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>My urls.py:</p>
  
  <pre><code>from orders import views as orders_views
  path('checkout/', orders_views.checkout, name='checkout'),
  </code></pre>