add device id to stake holder serialzier
This commit is contained in:
@@ -106,7 +106,7 @@ class PermissionViewSet(SoftDeleteMixin, viewsets.ModelViewSet):
|
||||
def connectionless_permissions(self, request, *args, **kwargs):
|
||||
""" get all permissions that are not assigned to any user relation """
|
||||
|
||||
permissions = Permissions.objects.annotate(num=Count('userrelations')).filter(num=0)
|
||||
permissions = Permissions.objects.annotate(num=Count('userrelations')).filter(num=0) # noqa
|
||||
|
||||
page = self.paginate_queryset(permissions)
|
||||
if page is not None:
|
||||
|
||||
Reference in New Issue
Block a user