From 4b4d4916cd698be4ec79cf94c28e73e73f952960 Mon Sep 17 00:00:00 2001 From: Brian Peterson Date: Mon, 19 Aug 2019 16:08:35 -0600 Subject: [PATCH] Fix str repr of secure model view --- flask_secure_admin/secure_model_view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_secure_admin/secure_model_view.py b/flask_secure_admin/secure_model_view.py index cb73d11..96113f1 100644 --- a/flask_secure_admin/secure_model_view.py +++ b/flask_secure_admin/secure_model_view.py @@ -6,7 +6,7 @@ # Create customized model view class class SecureModelView(sqla.ModelView): - def __str__(self): + def __repr__(self): return f"<'{self.name}' ModelView>" def is_accessible(self):