Skip to content

Commit

Permalink
fix: prevent insert error when creating deferred transaction by using…
Browse files Browse the repository at this point in the history
… sane default value
  • Loading branch information
Julie Rymer committed Apr 23, 2024
1 parent 992e1c6 commit 51fdfb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oscar/apps/payment/abstract_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def save(self, *args, **kwargs):
self._create_transaction(*txn)

def create_deferred_transaction(
self, txn_type, amount, reference=None, status=None
self, txn_type, amount, reference="", status=""
):
"""
Register the data for a transaction that can't be created yet due to FK
Expand Down

0 comments on commit 51fdfb4

Please sign in to comment.