mirror of https://github.com/jumpserver/jumpserver
perf: 优化所有View默认排序规则(name)
parent
39ae14877b
commit
9817154234
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue