Skip to content

Commit

Permalink
Merge pull request #1347 from userlocalhost/fix/configuration/entry_s…
Browse files Browse the repository at this point in the history
…erializer_v2

Fixed an error of auto-generate script by formality setting of DRF configuration
  • Loading branch information
hinashi authored Dec 30, 2024
2 parents 296f51c + 2a4ba87 commit d3ea42d
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 d3ea42d

Please sign in to comment.