title: Django ValidationError: ["“('1',)” value must be either True, False, or None."]
body: <p>why i am having getting this error ?  <strong>[&quot;“('1',)” value must be either True, False, or None.&quot;]</strong> did i miss something in my code? i am trying to update the data and i receive this error.</p>
  <p>This is my html</p>
  <pre><code>&lt;input type=&quot;checkbox&quot; name=&quot;Ubo&quot;  value=&quot;1&quot; {% if feedback.q5Ubo %}checked=&quot;check&quot;   {% endif %}&gt;
  &lt;input type=&quot;checkbox&quot; name=&quot;Lagnat&quot;  value=&quot;1&quot; {% if feedback.q5Lagnat  %}checked=&quot;check&quot;  {% endif %}&gt;
  &lt;input type=&quot;checkbox&quot; name=&quot;Sipon&quot;  value=&quot;1&quot; {% if feedback.q5Sipon  %}checked=&quot;check&quot;  {% endif %} &gt;
  &lt;input type=&quot;checkbox&quot; name=&quot;Lbm&quot;  value=&quot;1&quot; {% if feedback.q5LBM  %}checked=&quot;check&quot;  {% endif %}&gt;
  </code></pre>
  <p>This is my views.py</p>
  <pre><code>Ubo = request.POST.get('Ubo') or 0
  Lagnat = request.POST.get('Lagnat') or 0
  Sipon = request.POST.get('Sipon') or 0
  Lbm = request.POST.get('Lbm') or 0
  </code></pre>
  <p>this is my models.py</p>
  <pre><code>q5Ubo = models.BooleanField(default=False, blank=True, null=True)
  q5Lagnat = models.BooleanField(default=False, blank=True, null=True)
  q5Sipon = models.BooleanField(default=False, blank=True, null=True)
  q5LBM = models.BooleanField(default=False, blank=True, null=True)
  </code></pre>
  <p><strong>UPDATE</strong> i change my html and views.py</p>
  <p>html</p>
  <pre><code>&lt;input type=&quot;checkbox&quot; name=&quot;Ubo&quot;  value=True&gt;
  &lt;input type=&quot;checkbox&quot; name=&quot;Lagnat&quot;  value=True &gt;
  &lt;input type=&quot;checkbox&quot; name=&quot;Sipon&quot;  value=True &gt;
  &lt;input type=&quot;checkbox&quot; name=&quot;Lbm&quot;  value=True &gt;
  </code></pre>
  <p>views.py</p>
  <pre><code>Ubo = bool(request.POST.get('Ubo')) or False
  Lagnat = bool(request.POST.get('Lagnat')) or False
  Sipon = bool(request.POST.get('Sipon')) or False
  Lbm = bool(request.POST.get('Lbm')) or False
  </code></pre>
  <p>this is the traceback</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/home/MyHealth/contacttracingapp/ctenv/lib/python3.8/site-packages/django/core/handlers/exception.py&quot;, line 47, in inner
      response = get_response(request)
    File &quot;/home/MyHealth/contacttracingapp/ctenv/lib/python3.8/site-packages/django/core/handlers/base.py&quot;, line 179, in _get_response
      response = wrapped_callback(request, *callback_args, **callback_kwargs)
    File &quot;/home/MyHealth/contacttracingapp/TracingSettings/TracingApp/views.py&quot;, line 865, in Data
      insert_2tab.save()
    File &quot;/home/MyHealth/contacttracingapp/ctenv/lib/python3.8/site-packages/django/db/models/base.py&quot;, line 753, in save
      self.save_base(using=using, force_insert=force_insert,
    File &quot;/home/MyHealth/contacttracingapp/ctenv/lib/python3.8/site-packages/django/db/models/base.py&quot;, line 790, in save_base
      updated = self._save_table(
    File &quot;/home/MyHealth/contacttracingapp/ctenv/lib/python3.8/site-packages/django/db/models/base.py&quot;, line 872, in _save_table
      updated = self._do_update(base_qs, using, pk_val, values, update_fields,
    File &quot;/home/MyHealth/contacttracingapp/ctenv/lib/python3.8/site-packages/django/db/models/base.py&quot;, line 926, in _do_update
      return filtered._update(values) &gt; 0
    File &quot;/home/MyHealth/contacttracingapp/ctenv/lib/python3.8/site-packages/django/db/models/query.py&quot;, line 803, in _update
      return query.get_compiler(self.db).execute_sql(CURSOR)
    File &quot;/home/MyHealth/contacttracingapp/ctenv/lib/python3.8/site-packages/django/db/models/sql/compiler.py&quot;, line 1522, in execute_sql
      cursor = super().execute_sql(result_type)
    File &quot;/home/MyHealth/contacttracingapp/ctenv/lib/python3.8/site-packages/django/db/models/sql/compiler.py&quot;, line 1143, in execute_sql
      sql, params = self.as_sql()
    File &quot;/home/MyHealth/contacttracingapp/ctenv/lib/python3.8/site-packages/django/db/models/sql/compiler.py&quot;, line 1488, in as_sql
      val = field.get_db_prep_save(val, connection=self.connection)
    File &quot;/home/MyHealth/contacttracingapp/ctenv/lib/python3.8/site-packages/django/db/models/fields/__init__.py&quot;, line 823, in get_db_prep_save
      return self.get_db_prep_value(value, connection=connection, prepared=False)
    File &quot;/home/MyHealth/contacttracingapp/ctenv/lib/python3.8/site-packages/django/db/models/fields/__init__.py&quot;, line 818, in get_db_prep_value
      value = self.get_prep_value(value)
    File &quot;/home/MyHealth/contacttracingapp/ctenv/lib/python3.8/site-packages/django/db/models/fields/__init__.py&quot;, line 967, in get_prep_value
      return self.to_python(value)
    File &quot;/home/MyHealth/contacttracingapp/ctenv/lib/python3.8/site-packages/django/db/models/fields/__init__.py&quot;, line 957, in to_python
      raise exceptions.ValidationError(
  
  Exception Type: ValidationError at /Data/
  Exception Value: ['“(False,)” value must be either True, False, or None.']
  </code></pre>
  <p>this is my full views.py</p>
  <pre><code>    q1 = request.POST.get('q1')
      q2 = request.POST.get('q2')
      q2Reason = request.POST.get('q2Reason')
      q3 = request.POST.get('q3')
      q4 = request.POST.get('q4')
      q4Reason = request.POST.get('q4AnswerDetailed')
      q5 = request.POST.get('q5')
      q6visitedPlacesDuringNonWorkingDays = request.POST.get('q6visitedPlacesDuringNonWorkingDays')
      Ubo = bool(request.POST.get('Ubo')) or False
      Lagnat = bool(request.POST.get('Lagnat')) or False
      Sipon = bool(request.POST.get('Sipon')) or False
      Lbm = bool(request.POST.get('Lbm')) or False
      paghinga = bool(request.POST.get('paghinga')) or False
      Pananakit = bool(request.POST.get('Pananakit')) or False
      katawan = bool(request.POST.get('katawan')) or False
      Pagkawala = bool(request.POST.get('Pagkawala')) or False
  
  insert_2tab = TrEmployeeSuppliersFeedbackQuestionsSubmittedRecords(
          dateSubmitted=datenow,
          fmCustomerID=company,
          fmCustomerEmployeeSupplierID=fmCustomerEmployeeSupplierID,
          q1Answer=q1,
          q2Answer=q2,
          q2AnswerDetailed=q2Reason,
          q3Answer=q3,
          q4Answer=q4,
          q4AnswerDetailed=q4Reason,
          q5Answer=q5,
          q5Ubo=Ubo,
          q5Lagnat=Lagnat,
          q5Sipon=Sipon,
          q5LBM=Lbm,
          q5HirapSaPaghinga=paghinga,
          q5PananakitngUlo=Pananakit,
          q5PananakitngKatawan=katawan,
          q5PagkawalaNgPangAmoyatPanlasa=Pagkawala
          
      )
      insert_2tab.save()
  </code></pre>