Skip to content

Commit

Permalink
Restored validate_transfer call (#500)
Browse files Browse the repository at this point in the history
  • Loading branch information
amichard authored Jan 12, 2021
1 parent 0f5d70b commit 58721e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/api/viewsets/credit_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ def create(self, request, *args, **kwargs):
)

def perform_update(self, serializer, *args, **kwargs):

transfer = serializer.save()
if transfer.status == CreditTransferStatuses.VALIDATED:
validate_transfer(transfer)

notifications_credit_transfers(transfer)

0 comments on commit 58721e9

Please sign in to comment.