#22079: TestClient serialization of POST params with empty list as value
-------------------------------------+-------------------------------------
     Reporter:                       |                    Owner:  nobody
  code.djangoproject.com@…           |                   Status:  new
         Type:  Bug                  |                  Version:  master
    Component:  Testing framework    |               Resolution:
     Severity:  Normal               |             Triage Stage:  Accepted
     Keywords:                       |      Needs documentation:  0
    Has patch:  1                    |  Patch needs improvement:  1
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------
Changes (by gchp):

 * cc: gregchapple1@… (added)


Comment:

 What is the desired behaviour here?

 From what I can see, the difference lies with using
 `django.utils.http.urlencode` to process the get params.

 {{{
 >>> from django.utils.http import urlencode

 >>> data = {'test': ['value1', 'value2']
 >>> urlencode(data, doseq=True)
 'test=value1&test=value2'

 >>> data = {'test': []}
 >>> urlencode(data, doseq=True)
 ''
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22079#comment:3>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/093.36b1461b044172efc8315343efa14389%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to