title: Django model form this field is required
body: <p>I am new to Django. Trying to add data to database using ModelForm. But getting an error &quot;This field is required..&quot;</p>
  <p>My model:</p>
  <pre><code>class Docstest(models.Model):
  uploader =models.ForeignKey(&quot;auth.User&quot;,blank=False,null=False,on_delete=models.CASCADE)
      nameOfApplicant = models.CharField(max_length=50,blank=False)
      serviceRequestedName= models.ForeignKey(ServicesOffered,on_delete=models.CASCADE,blank=False,null=False)
      nameOfDocument = models.ForeignKey(DocumentsRequired,on_delete=models.CASCADE,blank=False,null=False)
      documentFile = models.FileField(upload_to='documents/%M', blank = False, null = False)
  
  
      def __str__(self):
          return str(self.nameOfDocument)+str(self.uploader)
  </code></pre>
  <p>forms.py</p>
  <pre><code>class MyForm(forms.ModelForm):
    class Meta:
      model = Docstest
      fields = [&quot;uploader&quot;, &quot;nameOfApplicant&quot;,&quot;serviceRequestedName&quot;,&quot;nameOfDocument&quot;,&quot;documentFile&quot;,]
      labels = {&quot;uploader&quot;:&quot;uploader&quot;, &quot;nameOfApplicant&quot;:&quot;nameOfApplicant&quot;,&quot;serviceRequestedName&quot;:&quot;serviceRequestedName&quot;,&quot;nameOfDocument&quot;:&quot;nameOfDocument&quot;,&quot;documentFile&quot;:&quot;documentFile&quot;,}
  </code></pre>
  <p>my html</p>
  <pre><code>{% extends 'base.html' %}
  {% block columncard %}
  &lt;div class=&quot;container&quot;&gt;
      &lt;form method=&quot;POST&quot;&gt;
        &lt;fieldset&gt;
          &lt;legend&gt;Form&lt;/legend&gt;
          {% csrf_token %}
          {{ form.as_p }}
          &lt;button type=&quot;submit&quot; class=&quot;btn btn-primary&quot;&gt;Submit&lt;/button&gt;
        &lt;/fieldset&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  
  {% endblock %}
  </code></pre>
  <p>There is a error &quot;This field is required&quot;. Data not saved in Database.
  Help.</p>