code: def initialize_request(self, request, *args, **kargs):
          
  
          def handle_encodings(request):
              """
              WSGIRequest does not support Unicode values in the query string.
              WSGIRequest handling has a history of drifting behavior between
              combinations of Python versions, Django versions and DRF versions.
              Django changed its QUERY_STRING handling here:
              https://goo.gl/WThXo6. DRF 3.4.7 changed its behavior here:
              https://goo.gl/0ojIIO.
              """
              try:
                  return QueryParams(request.GET)
              except UnicodeEncodeError:
                  pass
  
              s = request.environ.get('QUERY_STRING', '')
              try:
                  s = s.encode('utf-8')
              except UnicodeDecodeError:
                  pass
              return QueryParams(s)
  
          request.GET = handle_encodings(request)
          request = super(WithDynamicViewSetMixin, self).initialize_request(
              request, *args, **kargs
          )
  
          try:
              # Django<1.9, DRF<3.2
  
              # MergeDict doesn't have the same API as dict.
              # Django has deprecated MergeDict and DRF is moving away from
              # using it - thus, were comfortable replacing it with a QueryDict
              # This will allow the data property to have normal dict methods.
              from django.utils.datastructures import MergeDict
              if isinstance(request._full_data, MergeDict):
                  data_as_dict = request.data.dicts[0]
                  for d in request.data.dicts[1:]:
                      data_as_dict.update(d)
                  request._full_data = data_as_dict
          except:
              pass
  
          return request
docs: Override DRF initialize_request() method to swap request.GET
          (which is aliased by request.query_params) with a mutable instance
          of QueryParams, and to convert request MergeDict to a subclass of dict
          for consistency (MergeDict is not a subclass of dict)