django-rest-framework-docs icon indicating copy to clipboard operation
django-rest-framework-docs copied to clipboard

api_endpoint __get_permissions_class__ missing __name__

Open stdweird opened this issue 6 years ago • 0 comments

with DRF 3.9.1 we have errors for custom permissions with following exception AttributeError: OperandHolder instance has no attribute '__name__'

the self.pattern.callback.cls.permission_classes seems to return a mix of classes and instances (e.g. for a subclass of DjangoObjectPermissions)

stdweird avatar Jan 18 '19 15:01 stdweird