Skip to content

Commit

Permalink
fix: Missing pre_patch hook
Browse files Browse the repository at this point in the history
  • Loading branch information
phuongfi91 committed Dec 9, 2024
1 parent 37f59d5 commit 7c9596d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions django_ninja_crudl/crudl.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,7 @@ def patch(
request_details.object = obj
if not self.has_object_permission(request_details):
return self.get_404_error(request) # noqa: WPS220
self.pre_patch(request_details)

for attr_name, attr_value in payload.items():
setattr(obj, attr_name, attr_value) # noqa: WPS220
Expand Down

0 comments on commit 7c9596d

Please sign in to comment.