From 2a4ba870b6acd8a78954a4ba10f2ec82ab9af5a9 Mon Sep 17 00:00:00 2001 From: Hiroyasu OHYAMA Date: Thu, 26 Dec 2024 08:39:03 +0000 Subject: [PATCH] Fixed an error of auto-generate script by formality setting of DRF configuration --- entry/api_v2/views.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/entry/api_v2/views.py b/entry/api_v2/views.py index ad3150b1a..8b110e62e 100644 --- a/entry/api_v2/views.py +++ b/entry/api_v2/views.py @@ -822,6 +822,11 @@ class EntryAttributeValueRestoreAPI(generics.UpdateAPIView): ], ) class EntryBulkDeleteAPI(generics.DestroyAPIView): + # (Execuse) + # Specifying serializer_class is necessary for passing processing + # of npm run generate + serializer_class = EntryUpdateSerializer + def delete(self, request: Request, *args, **kwargs) -> Response: ids: list[str] = self.request.query_params.getlist("ids", []) if len(ids) == 0 or not all([id.isdecimal() for id in ids]):