|
|
|
@ -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()
|
|
|
|
|