mirror of
https://github.com/wassname/flask-security.git
synced 2026-07-19 11:23:28 +08:00
Use a stateful object instead of arbitrary assignment of extension on app object
This commit is contained in:
@@ -15,7 +15,7 @@ from werkzeug.local import LocalProxy
|
||||
from flask_security import views
|
||||
|
||||
|
||||
_datastore = LocalProxy(lambda: current_app.security.datastore)
|
||||
_datastore = LocalProxy(lambda: current_app.extensions['security'].datastore)
|
||||
|
||||
|
||||
def pprint(obj):
|
||||
|
||||
Reference in New Issue
Block a user