django-cbv-inspect
django-cbv-inspect copied to clipboard
Add DRF Support
Currently the cbv check consists of an attribute check on the view function: https://github.com/sjbitcode/django-cbv-inspect/blob/fad3cc9db45f1ccd52f349db1b7a3a8a7475e2ad/cbv_inspect/utils.py#L86-L90
This isn't compatible with DRF's views (via browsable API) because of the extra processing in DRF's APIView and ViewSetMixin; it is possible by checking the cls attribute but we need to make sure there aren't any side effects with other DRF things like the wrapped request/response objects.