use repr() to prevent encoding issues
This commit is contained in:
parent
ea52051c96
commit
9df4fd37be
1 changed files with 1 additions and 3 deletions
|
|
@ -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>" % (self.date,
|
||||
label, self.amount)
|
||||
return "<Transaction date=%r label=%r amount=%r>" % (self.date, self.label, self.amount)
|
||||
|
||||
def unique_id(self, seen=None, account_id=None):
|
||||
crc = crc32(str(self.date))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue