title: django form data not saved in database
body: <p>I have a form to make POST data to database.</p>
  
  <p>I'm using <code>Django 1.11</code></p>
  
  <p><strong>views.py</strong></p>
  
  <pre><code>class BusinessCreate(CreateView):
      model = Business
      fields = '__all__'
  
      @method_decorator(login_required)
      def dispatch(self, *args, **kwargs):
          messages.success(self.request, 'dispatch')
          return super(BusinessCreate, self).dispatch(*args, **kwargs)
  
      def form_valid(self, form):
          messages.success(self.request, 'valid')
          form.instance.user = self.request.user   # set user_id field to session user
          form.save()
  
      def get_success_url(self):
          messages.success(self.request, 'Business Added Successfully')
          return reverse('business:list')
  </code></pre>
  
  <p><strong>template</strong></p>
  
  <pre><code>&lt;form class="card" method="POST"&gt;
      {% csrf_token %}
  
      {{ form.non_field_errors }}
      {{ form.non_field_errors }}
  
      {% render_field form.name class='form-control' placeholder='Business Title' %}
      {{ form.name.errors }}
  
      {% render_field form.business_type class='form-control' %}
      {{ form.business_type.errors }}
  
      &lt;button class="btn"&gt;Add Business&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>When I submit the form, it doesn't save and also does not return any error.</strong></p>
  
  <p>The <code>messages</code> in three methods in <code>views.py</code> are to check which method is called and it always prints <code>dispatch</code> since the only dispatch is called.</p>
  
  <p>I used <code>debug_toolbar</code> to check for debug whether request is <code>POST</code> or <code>GET</code> or none of the two and it show.</p>
  
  <p><a href="https://i.stack.imgur.com/kuMic.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kuMic.png" alt="enter image description here"></a></p>