Commit 9df4fd37 authored by Romain Bignon's avatar Romain Bignon

use repr() to prevent encoding issues

parent ea52051c
......@@ -107,9 +107,7 @@ class Transaction(CapBaseObject):
amount = DecimalField('Amount of the transaction')
def __repr__(self):
label = self.label.encode('utf-8') if self.label else self.label
return "<Transaction date='%s' label='%s' amount=%s>" % (,
label, self.amount)
return "<Transaction date=%r label=%r amount=%r>" % (, self.label, self.amount)
def unique_id(self, seen=None, account_id=None):
crc = crc32(str(
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment