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:
1 2 3 4 5 6 | >>> q = QueryDict( 'a=1' , mutable = True ) >>> q.update({ 'a' : '2' }) >>> q.getlist( 'a' ) [ '1' , '2' ] >>> q[ 'a' ] # returns the last '2' |
Please login to continue.