mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 14:54:22 +00:00
🔧 Fix returned type
This commit is contained in:
parent
8704784f0b
commit
4cdf671766
1 changed files with 2 additions and 2 deletions
|
@ -22,9 +22,9 @@ class NotebooksViewSet(SophonGroupViewSet, metaclass=abc.ABCMeta):
|
||||||
|
|
||||||
def get_permission_classes(self) -> t.Collection[t.Type[BasePermission]]:
|
def get_permission_classes(self) -> t.Collection[t.Type[BasePermission]]:
|
||||||
if self.action in ["sync", "start", "lock", "unlock", "stop"]:
|
if self.action in ["sync", "start", "lock", "unlock", "stop"]:
|
||||||
return Edit
|
return Edit,
|
||||||
else:
|
else:
|
||||||
super().get_permission_classes()
|
return super().get_permission_classes()
|
||||||
|
|
||||||
def get_custom_serializer_classes(self):
|
def get_custom_serializer_classes(self):
|
||||||
if self.action in ["sync", "start", "lock", "unlock", "stop"]:
|
if self.action in ["sync", "start", "lock", "unlock", "stop"]:
|
||||||
|
|
Loading…
Reference in a new issue