Skip to content

Commit

Permalink
Quick fix to address deadlock issue (#7434)
Browse files Browse the repository at this point in the history
(cherry picked from commit c8bb7e0fe406e4afe8fb7f2655d4f350ece528dc)
  • Loading branch information
DevNoctis1001 committed Jun 19, 2019
1 parent ad62c7b commit 9c14c6e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions superset/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,14 @@ def index(self):
not FAB's security manager.
See [4565] in UPDATING.md""")

appbuilder = AppBuilder(
app,
db.session,
base_template='superset/base.html',
indexview=MyIndexView,
security_manager_class=custom_sm,
)
with app.app_context():
appbuilder = AppBuilder(
app,
db.session,
base_template='superset/base.html',
indexview=MyIndexView,
security_manager_class=custom_sm,
)

security_manager = appbuilder.sm

Expand Down

0 comments on commit 9c14c6e

Please sign in to comment.