From 457d462361f4e1eae436f76396ebc1fe0dee9229 Mon Sep 17 00:00:00 2001 From: Brian Peterson Date: Tue, 13 Aug 2019 15:14:43 -0600 Subject: [PATCH] Woops, fix database ref --- flask_secure_admin/blueprint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_secure_admin/blueprint.py b/flask_secure_admin/blueprint.py index 414aaf8..a08bb0a 100644 --- a/flask_secure_admin/blueprint.py +++ b/flask_secure_admin/blueprint.py @@ -81,7 +81,7 @@ def register(self, app, options, first_registration=False): self.admin = self.add_admin(app, app.db, options) self.security = self.add_security(app, app.db, options) - self.bootstrap_database(app, db) + self.bootstrap_database(app, app.db) @app.teardown_appcontext def shutdown_session(exception=None):