http.QueryDict.update()

QueryDict.update(other_dict) Takes either a QueryDict or standard dictionary. Just like the standard dictionary update() method, except it appends to the current dictionary items rather than replacing them. For example: >>> q = QueryDict('a=1', mutable=True) >>> q.update({'a': '2'}) >>> q.getlist('a') ['1', '2'] >>> q['a'] # returns the last '2'

http.QueryDict.setlistdefault()

QueryDict.setlistdefault(key, default_list=None) [source] Just like setdefault, except it takes a list of values instead of a single value.

http.QueryDict.setlist()

QueryDict.setlist(key, list_) [source] Sets the given key to list_ (unlike __setitem__()).

http.QueryDict.setdefault()

QueryDict.setdefault(key, default=None) [source] Just like the standard dictionary setdefault() method, except it uses __setitem__() internally.

http.QueryDict.popitem()

QueryDict.popitem() [source] Removes an arbitrary member of the dictionary (since there’s no concept of ordering), and returns a two value tuple containing the key and a list of all values for the key. Raises KeyError when called on an empty dictionary. For example: >>> q = QueryDict('a=1&a=2&a=3', mutable=True) >>> q.popitem() ('a', ['1', '2', '3'])

http.QueryDict.pop()

QueryDict.pop(key) [source] Returns a list of values for the given key and removes them from the dictionary. Raises KeyError if the key does not exist. For example: >>> q = QueryDict('a=1&a=2&a=3', mutable=True) >>> q.pop('a') ['1', '2', '3']

http.QueryDict.lists()

QueryDict.lists() Like items(), except it includes all values, as a list, for each member of the dictionary. For example: >>> q = QueryDict('a=1&a=2&a=3') >>> q.lists() [('a', ['1', '2', '3'])]

http.QueryDict.itervalues()

QueryDict.itervalues() Just like QueryDict.values(), except an iterator. In addition, QueryDict has the following methods:

http.QueryDict.iterlists()

QueryDict.iterlists() Like QueryDict.iteritems() except it includes all values, as a list, for each member of the dictionary.

http.QueryDict.iteritems()

QueryDict.iteritems() Just like the standard dictionary iteritems() method. Like QueryDict.items() this uses the same last-value logic as QueryDict.__getitem__().