fix querydict_to_kwargs function

fixed conversion between QueryDict and kwargs