fix: 角色管理

This commit is contained in:
Czw996 2021-12-21 19:34:35 +08:00
parent 42bb5af691
commit fc005f7b24
2 changed files with 1 additions and 1 deletions

View file

@ -22,7 +22,7 @@ class PermissionGroupViewSet(BaseViewSet, ListModelMixin):
queryset = PermissionGroup.objects.all()
def get_queryset(self):
return super().get_queryset().prefetch_related('permissions')
return self.queryset.prefetch_related('permissions').all()
class SystemConfigViewSet(FunctionViewSet):

0
logs/__init__.py Normal file
View file