How to allow empty forms in a formset django
<p>I want to check formset is empty or not. If empty, don't create new record in database. How can I do that?. Please help solve this problem although I entered required=False in the form.py. This is my code:</p>

<pre><code>class ExtraValueFormRight(forms.ModelForm):
    label = forms.CharField(required=False,
                        widget=forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'Sub Title'}))
    somevalue = forms.CharField(required=False,
                            widget=forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'Some Value'}))

class Meta:
    model = OrderHeader
    fields = ('label', 'somevalue')
</code></pre>

<p>HTML:</p>

<pre><code>{{ formset.management_form }}
{% for form in formset.forms %}
     &lt;div class='table-left'&gt;
         &lt;table class='no_error'&gt;
              &lt;div class="form-group"&gt;
                  &lt;div class="col-lg-12"&gt;
                       {{ form.label }}
                  &lt;/div&gt;
               &lt;/div&gt;
               &lt;div class="form-group"&gt;
                   &lt;div class="col-lg-12"&gt;
                        {{ form.somevalue }}
                   &lt;/div&gt;
               &lt;/div&gt;
          &lt;/table&gt;
      &lt;/div&gt;
{% endfor %}
</code></pre>