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

Commit

Permalink
fix AttributeError: Manager isn't accessible via Payment instances
Browse files Browse the repository at this point in the history
  • Loading branch information
radekholy24 committed May 14, 2024
1 parent 640fdcc commit b829c00
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 b829c00

Please sign in to comment.