Checklist
Steps to reproduce
Please see my example project https://github.com/sanchaz/django-drf-demo
clone
./manage migrate
./manage test
./manage runserver
Go to http://127.0.0.1:8000/admin
Login with
user: demo
password: demo
Go to http://127.0.0.1:8000/api/demo/thisone/demo2/
Go to http://127.0.0.1:8000/api/demo/thisone/demo/
Expected behavior
http://127.0.0.1:8000/api/demo/thisone/demo/ should instead show the data.
The tests written call endpoint demo/ and demo2/ without any issue.
demo2/ is the same as demo/ but the serializer is passed an array instead of an object and many=True
Actual behavior
Crashes because it tries to check for object permission on the serializer object used in the Response.
This seems like a bug in the browsable api.
I don't understand why it calls check_object_permissions on the serializer obj used in the response.
Checklist
masterbranch of Django REST framework.Steps to reproduce
Please see my example project https://github.com/sanchaz/django-drf-demo
clone
./manage migrate
./manage test
./manage runserver
Go to http://127.0.0.1:8000/admin
Login with
user: demo
password: demo
Go to http://127.0.0.1:8000/api/demo/thisone/demo2/
Go to http://127.0.0.1:8000/api/demo/thisone/demo/
Expected behavior
http://127.0.0.1:8000/api/demo/thisone/demo/ should instead show the data.
The tests written call endpoint demo/ and demo2/ without any issue.
demo2/ is the same as demo/ but the serializer is passed an array instead of an object and many=True
Actual behavior
Crashes because it tries to check for object permission on the serializer object used in the Response.
This seems like a bug in the browsable api.
I don't understand why it calls check_object_permissions on the serializer obj used in the response.