From 9eddaf66cb61b374ada36b351bd78c8771f7144a Mon Sep 17 00:00:00 2001 From: kevgliss Date: Wed, 16 Nov 2016 09:30:46 -0800 Subject: [PATCH] adding human readable string (#500) --- lemur/authorities/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lemur/authorities/models.py b/lemur/authorities/models.py index 57fdf657..fb1f8c90 100644 --- a/lemur/authorities/models.py +++ b/lemur/authorities/models.py @@ -43,3 +43,6 @@ class Authority(db.Model): @property def plugin(self): return plugins.get(self.plugin_name) + + def __repr__(self): + return "Authority(name={name})".format(name=self.name)