I am new to using Django Rest framework, i am following this tutorial Django-Rest-Framework
Instead of snippets my model consists of a userprofile as given belo
I had the same error when I used custom permissions, because of a 'typo'
I had:
@permission_classes(EventByFacilityPermissions) class EventByFacilityViewSet(viewsets.ModelViewSet):
instead of:
@permission_classes((EventByFacilityPermissions,)) class EventByFacilityViewSet(viewsets.ModelViewSet):