fix: 修复celery api 报错

pull/9974/head
halo 2023-03-15 13:58:36 +08:00 committed by Jiangjie.Bai
parent 07eebd93fb
commit 0ade034391
1 changed files with 1 additions and 1 deletions

View File

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