feat: 100% async - native async serializers (adata/asave/acreate), async cache (redis.asyncio), view call-site migration

This commit is contained in:
async-upgrade
2026-09-06 14:36:41 +08:00
parent 8f488fcaaa
commit 571641e539
18 changed files with 81 additions and 81 deletions
+3 -3
View File
@@ -26,7 +26,7 @@ class CategoryListView(APIView):
return JsonResponse({
'code': 200,
'message': 'success',
'data': serializer.data
'data': await serializer.adata
})
@@ -74,7 +74,7 @@ class ApiItemListView(APIView):
return JsonResponse({
'code': 200,
'message': 'success',
'data': serializer.data
'data': await serializer.adata
})
@@ -94,7 +94,7 @@ class ApiItemDetailView(APIView):
return JsonResponse({
'code': 200,
'message': 'success',
'data': serializer.data
'data': await serializer.adata
})
except ApiItem.DoesNotExist:
return JsonResponse({