add device id to stake holder serialzier

This commit is contained in:
2025-10-26 12:02:22 +03:30
parent 984315a876
commit edd4a39fd6
3 changed files with 4 additions and 2 deletions

View File

@@ -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: