title: How could I save my input from a check box wherein when I check only one option on the box it gave me an error
body: <p>How could I save my input from a check box wherein when I check option1 of the box and save it it gives me an error saying there is no value on option2 or vice versa. But when i marked them both. I was able to save it on the database, problem is on my database it should only show either value of 1 or 0 and null if there is no input.</p>
  
  <p>Here is my html code for now.</p>
  
  <pre><code>&lt;div class="col-md-6"&gt;
      &lt;div class="form-group bmd-form-group"&gt;
          &lt;input type="checkbox" name="is_regular" value="1"&gt; Regular&lt;br&gt;
          &lt;input type="checkbox" name="is_special" value="0"&gt; Special&lt;br&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Model forms</p>
  
  <pre><code>class Save_Holiday_Form(ModelForm):
      class Meta:
          model = Holiday
          fields = ['holiday_id', 'holiday_name', 'is_regular', 'is_special', 'date_start', 'date_end']
  </code></pre>
  
  <p>Views.py</p>
  
  <pre><code>def add_holidays(request):
      holiday_name = request.POST['holiday_name']
      date_start = request.POST['date_start']
      date_end = request.POST['date_end']
      is_regular = request.POST['is_regular']
      is_special = request.POST['is_special']
  
      holiday_info = Holiday(
              holiday_name=holiday_name,
              date_start=date_start,
              date_end=date_end,
              is_regular=is_regular,
              is_special=is_special
              )
      holiday_info.save()
      return render(request, 'holidays.html')
  </code></pre>