#22897 closed Cleanup/optimization (fixed)

Make query_string argument to QueryDict optional

Reported by: duncan@… Owned by: nobody
Component: HTTP handling Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Previously, a blank QueryDict could be created by calling

QueryDict(str('')) or QueryDict(None)

It seems rather nicer to just allow the query_string argument to
default to None so that we can just write QueryDict().

It's a commit in ​https://github.com/django/django/pull/2778

Change History (2)

comment:1 Changed 11 months ago by timo

  • Summary changed from Made query_string argument to QueryDict optional to Make query_string argument to QueryDict optional
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 11 months ago by Tim Graham <timograham@…>

  • Resolution set to fixed
  • Status changed from new to closed

In d68987ae25f0e0fb30727473803758af53d75671:

Fixed #22897 -- Made QueryDict query_string argument optional.

Now QueryDict() is equivalent to QueryDict() or QueryDict(None).

Note: See TracTickets for help on using tickets.
Back to Top