Verified Commit ba45f6a3 authored by Jakob Moser's avatar Jakob Moser
Browse files

Add __str__ method for transaction

parent bc31b484
Loading
Loading
Loading
Loading
+3 −0
Changes for poolpay/model/Transaction.py: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -69,3 +69,6 @@ class Transaction(Base):
            posting_text=transaction.data["posting_text"],
            account=account,
        )

    def __str__(self) -> str:
        return f"{self.date.isoformat()} {self.amount_cents/100:+6.2f} € {self.partner} {self.purpose} {self.posting_text}"