5

In one of my view, I'm passing additional data as query params in APIView delete method. I'm able to fetch the same using the request.query_params in the view. But when I'm trying to test the same with DRF APIRequestFactory, the data is empty. Digging further through the APIRequestFactory code shows me that its only looking at request.data and not on QUERY_STRING. Is there any specific reason for this behaviour?

1 Answers1

0

This is an open issue on github and it has not solved yet. https://github.com/encode/django-rest-framework/issues/6488

Hamed Fathi
  • 65
  • 3
  • 11