mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-12 13:31:56 +00:00
perf: 优化所有View默认排序规则(name)
This commit is contained in:
@@ -11,6 +11,7 @@ from rest_framework.response import Response
|
||||
|
||||
from common.const.http import GET
|
||||
from common.drf.filters import BaseFilterSet
|
||||
from common.api.mixin import CommonApiMixin
|
||||
from terminal import const
|
||||
from terminal.filters import CommandStorageFilter, CommandFilter, CommandFilterForStorageTree
|
||||
from terminal.models import CommandStorage, ReplayStorage
|
||||
@@ -22,7 +23,7 @@ __all__ = [
|
||||
]
|
||||
|
||||
|
||||
class BaseStorageViewSetMixin:
|
||||
class BaseStorageViewSetMixin(CommonApiMixin):
|
||||
|
||||
def destroy(self, request, *args, **kwargs):
|
||||
instance = self.get_object()
|
||||
|
Reference in New Issue
Block a user