#16705: r13746 makes invalid assumption that QUERY_STRING exists
-------------------------------------+-------------------------------------
               Reporter:  raylu      |          Owner:  aaugustin
                   Type:  Bug        |         Status:  new
              Milestone:             |      Component:  Generic views
                Version:  SVN        |       Severity:  Release blocker
             Resolution:             |       Keywords:
           Triage Stage:  Ready for  |      Has patch:  1
  checkin                            |    Needs tests:  0
    Needs documentation:  0          |  Easy pickings:  0
Patch needs improvement:  0          |
                  UI/UX:  0          |
-------------------------------------+-------------------------------------

Comment (by raylu):

 It seems like in django/middleware/common.py what you really want is

 {{{ if 'QUERY_STRING' in request.META: }}}

 Everywhere else,

 {{{ args = request.META.get('QUERY_STRING') }}}

 seems to make more sense since the check on the next line is merely {{{ if
 args }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16705#comment:9>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to