mirror of https://github.com/jumpserver/jumpserver
fix: 修复celery api 报错
parent
07eebd93fb
commit
0ade034391
|
@ -83,7 +83,7 @@ class CeleryResultApi(generics.RetrieveAPIView):
|
|||
|
||||
def get_object(self):
|
||||
pk = self.kwargs.get('pk')
|
||||
return AsyncResult(pk)
|
||||
return AsyncResult(str(pk))
|
||||
|
||||
|
||||
class CeleryPeriodTaskViewSet(CommonApiMixin, viewsets.ModelViewSet):
|
||||
|
|
Loading…
Reference in New Issue