Checklist
Hello, thanks for this awesome piece of software!
The issue is the following:
When using detail_route in ModelViewSet and using "options" method , the documentation page fails with an exception.
Steps to reproduce
- Create a project with ModelViewSet
- Add this method in the class
@detail_route(methods=['options', 'get', 'put'])
def test(self, request, *args, **kwargs):
pass
- Check that the documentation is not working
Expected behavior
The documentation should work using the "options" method
Actual behavior
The documentation page is crashing with exception
KeyError: 'options'
Thanks for the help!
Amit.
Checklist
masterbranch of Django REST framework.Hello, thanks for this awesome piece of software!
The issue is the following:
When using detail_route in ModelViewSet and using "options" method , the documentation page fails with an exception.
Steps to reproduce
Expected behavior
The documentation should work using the "options" method
Actual behavior
The documentation page is crashing with exception
KeyError: 'options'
Thanks for the help!
Amit.