mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Add additional new __repr_ function
This commit is contained in:
parent
243eba2f78
commit
8f4cd9a375
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user