diff --git a/accounting/models.py b/accounting/models.py index 97e7c32ad12e7a663b0225af765e83f37867b399..c09dc57962b2d259cfa430756a8bb81682577343 100644 --- a/accounting/models.py +++ b/accounting/models.py @@ -15,10 +15,10 @@ class Transaction: self.generate_id() def generate_id(self): - self.id = uuid.uuid4() + self.id = str(uuid.uuid4()) def __repr__(self): - return ('<{self.__class__.__name__} {date}' + + return ('<{self.__class__.__name__} {self.id} {date}' + ' {self.payee} {self.postings}').format( self=self, date=self.date.strftime('%Y-%m-%d'))