From 8f4cd9a37581c3b5516762ff5531cc4f5782c46b Mon Sep 17 00:00:00 2001 From: Stephan Porada <sporada@uni-bielefeld.de> Date: Mon, 18 May 2020 13:46:12 +0200 Subject: [PATCH] Add additional new __repr_ function --- app/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models.py b/app/models.py index 02f6f879..810518d7 100644 --- a/app/models.py +++ b/app/models.py @@ -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, -- GitLab