title: Data is not getting stored in a database through a customer form
body: <p>I made a customer feedback form with rating stars. But problem is, not getting stored data in database. Where the actual problem occured? What is the relevent solution? I tried many time.</p>
  <p><em><strong>forms.py:</strong></em></p>
  <pre><code>class FeedBackForm(forms.Form):
      feedBACK = forms.CharField(widget=forms.Textarea, required=True)     
      rating = forms.CharField(widget=forms.NumberInput) 
  </code></pre>
  <p><em><strong>models.py:</strong></em></p>
  <pre><code>class ProductREVIEWS(models.Model):
  
  rating = models.IntegerField(blank=True, null=True)
  feedBACK = models.TextField(blank=True, null=True)
  </code></pre>
  <p><em><strong>views.py:</strong></em></p>
  <pre><code>def quick_view(request, quick_view_id):
      form = FeedBackForm()
      if request.method == &quot;POST&quot; and request.user.is_authenticated:
          form = FeedBackForm(request.POST)
          if form.is_valid():
              ProductREVIEWS.objects.create(
                  feedBACK=form.cleaned_data.get('feedBACK'),
                  rating=form.cleaned_data.get('product_rating'),
              )
  </code></pre>
  <p><em><strong>template:</strong></em></p>
  <pre><code>&lt;form action=&quot;#!&quot; method=&quot;POST&quot; class=&quot;needs-validation mt-3&quot; style=&quot;font-size: 13px;&quot; novalidate=&quot;&quot; autocomplete=&quot;off&quot;&gt;
      {% csrf_token %}
  
      &lt;div class=&quot;radio-toolbar d-flex&quot;&gt;
          &lt;input type=&quot;radio&quot; id=&quot;one_star&quot; name=&quot;product_rating&quot; value=&quot;1&quot; checked&gt;
          &lt;label for=&quot;one_star&quot; class=&quot;mx-1&quot;&gt;1 &lt;i class=&quot;fas fa-star&quot;&gt;&lt;/i&gt;&lt;/label&gt;
  
          &lt;input type=&quot;radio&quot; id=&quot;two_star&quot; name=&quot;product_rating&quot; value=&quot;2&quot;&gt;
          &lt;label for=&quot;two_star&quot; class=&quot;mx-1&quot;&gt;2 &lt;i class=&quot;fas fa-star&quot;&gt;&lt;/i&gt;&lt;/label&gt;
  
          &lt;input type=&quot;radio&quot; id=&quot;three_star&quot; name=&quot;product_rating&quot; value=&quot;3&quot;&gt;
          &lt;label for=&quot;three_star&quot; class=&quot;mx-1&quot;&gt;3 &lt;i class=&quot;fas fa-star&quot;&gt;&lt;/i&gt;&lt;/label&gt;
  
          &lt;input type=&quot;radio&quot; id=&quot;four_star&quot; name=&quot;product_rating&quot; value=&quot;4&quot;&gt;
          &lt;label for=&quot;four_star&quot; class=&quot;mx-1&quot;&gt;4 &lt;i class=&quot;fas fa-star&quot;&gt;&lt;/i&gt;&lt;/label&gt;
  
          &lt;input type=&quot;radio&quot; id=&quot;five_star&quot; name=&quot;product_rating&quot; value=&quot;5&quot;&gt;
          &lt;label for=&quot;five_star&quot; class=&quot;mx-1&quot;&gt;5 &lt;i class=&quot;fas fa-star&quot;&gt;&lt;/i&gt;&lt;/label&gt;
      &lt;/div&gt;
  
      &lt;div class=&quot;mb-3 mt-2&quot;&gt;
          &lt;textarea id=&quot;email&quot; placeholder=&quot;Share your experiencs...&quot; rows=&quot;10&quot; style=&quot;font-size: 13px; text-transform: lowercase;&quot; type=&quot;email&quot; class=&quot;form-control&quot; name=&quot;feedBACK&quot; value=&quot;&quot; required&gt;&lt;/textarea&gt;
       &lt;/div&gt;
  </code></pre>