#32154: Test client POSTs unset data as False
-------------------------------------+-------------------------------------
               Reporter:             |          Owner:  nobody
  Aristotelis Mikropoulos            |
                   Type:  Bug        |         Status:  new
              Component:  Testing    |        Version:  3.1
  framework                          |
               Severity:  Normal     |       Keywords:
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 In a test case, calling self.client.post(url) with no data to an empty
 (vanilla) CreateView of a dummy model sends boolean fields as False. That
 is, if this model has a single field foo =
 models.BooleanField(default=True) it is incorrectly created with a False
 foo. Trying the same with an external client (such as cURL) without
 declaring any POST data correctly puts a True foo in the newly created row
 in the database.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32154>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.a408861a2fb6fcafd6a8a6f418011b77%40djangoproject.com.

Reply via email to