Skip to content

Commit

Permalink
Fixed an error of auto-generate script by formality setting of DRF co…
Browse files Browse the repository at this point in the history
…nfiguration
  • Loading branch information
userlocalhost committed Dec 26, 2024
1 parent 296f51c commit 2a4ba87
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions entry/api_v2/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]):
Expand Down

0 comments on commit 2a4ba87

Please sign in to comment.