Ensuring model's have a basic __repr__. (#499)
This commit is contained in:
@ -33,3 +33,6 @@ class Notification(db.Model):
|
||||
@property
|
||||
def plugin(self):
|
||||
return plugins.get(self.plugin_name)
|
||||
|
||||
def __repr__(self):
|
||||
return "Notification(label={label})".format(label=self.label)
|
||||
|
Reference in New Issue
Block a user