Docs
Link
You should use djangorestframework 3.15 or more to support it
3.15
Also, to prevent redirects, you can enable "inspect redirects" at the button panel of it