Skip to content
Snippets Groups Projects
Commit 8f4cd9a3 authored by Stephan Porada's avatar Stephan Porada :speech_balloon:
Browse files

Add additional new __repr_ function

parent 243eba2f
No related branches found
No related tags found
No related merge requests found
...@@ -438,7 +438,7 @@ class NotificationEmailData(db.Model): ...@@ -438,7 +438,7 @@ class NotificationEmailData(db.Model):
''' '''
String representation of the NotificationEmailData. For human readability. 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): def to_dict(self):
return {'id': self.id, return {'id': self.id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment