Skip to content

api_endpoint __get_permissions_class__ missing __name__ #181

Open
@stdweird

Description

@stdweird

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions