1
Fork 0
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:
Steffo 2021-11-08 19:33:55 +01:00 committed by Stefano Pigozzi
parent 8704784f0b
commit 4cdf671766

View file

@ -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"]: