mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-21 19:38:07 +00:00
pref: 优化 audit log
This commit is contained in:
@@ -10,7 +10,7 @@ from ..utils import set_to_root_org
|
||||
|
||||
__all__ = [
|
||||
'RootOrgViewMixin', 'OrgModelViewSet', 'OrgBulkModelViewSet', 'OrgQuerySetMixin',
|
||||
'OrgGenericViewSet', 'OrgRelationMixin'
|
||||
'OrgGenericViewSet', 'OrgRelationMixin', 'OrgReadonlyModelViewSet'
|
||||
]
|
||||
|
||||
|
||||
@@ -62,6 +62,10 @@ class OrgBulkModelViewSet(CommonApiMixin, OrgViewSetMixin, BulkModelViewSet):
|
||||
return False
|
||||
|
||||
|
||||
class OrgReadonlyModelViewSet(OrgModelViewSet):
|
||||
http_method_names = ['get', 'head', 'options']
|
||||
|
||||
|
||||
class OrgRelationMixin(RelationMixin):
|
||||
def get_queryset(self):
|
||||
queryset = super().get_queryset()
|
||||
|
Reference in New Issue
Block a user