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):