remove encode('utf-8')
Created by: razisayyed
parse_qs(query_string.encode('utf-8'))
returns a dict with both keys and values are bytes. This will work fine in Python 2. but in Python 3 bytes can not be compared to strings, and thus query parameters that supposed to be removed will be ignored except if you add the following line to the view:
del_query_parameters = [b'page', b'sort']
I think it is safe to remove encode('utf-8') and just use:
parse_qs(query_string)