Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request PetrDlouhy#10 from radekholy24/payment.objects
Browse files Browse the repository at this point in the history
fix AttributeError: Manager isn't accessible via Payment instances
  • Loading branch information
PetrDlouhy authored May 15, 2024
2 parents 640fdcc + b829c00 commit ab4b9c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
History
-------

Unreleased
**********
* fix "AttributeError: Manager isn't accessible via Payment instances" introduced in 1.4.1

1.4.2 (2024-05-14)
******************
Expand Down
2 changes: 1 addition & 1 deletion payments_payu/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def process_notification(self, payment, request):
data["order"]["totalAmount"],
data["order"]["currencyCode"],
)
payment.objects.filter(pk=payment.pk).update(
type(payment).objects.filter(pk=payment.pk).update(
captured_amount=payment.captured_amount
)
payment.change_status(status)
Expand Down

0 comments on commit ab4b9c6

Please sign in to comment.