Add additional new __repr_ function

This commit is contained in:
Stephan Porada 2020-05-18 13:46:12 +02:00
parent 243eba2f78
commit 8f4cd9a375

View File

@ -438,7 +438,7 @@ class NotificationEmailData(db.Model):
'''
String representation of the NotificationEmailData. For human readability.
'''
return '<NotificationData %r>' % self.id # TODO: Why not .format()?
return '<NotificationData {id}>'.format(id=self.id)
def to_dict(self):
return {'id': self.id,