fix: 修复celery api 报错

pull/9978/head
halo 2023-03-15 14:00:41 +08:00 committed by Jiangjie.Bai
parent 32cba4f2a1
commit 2fcf045826
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,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):