forked from orbit-oss/flask
Added missing import.
As this specific code block lists imports in general and an import from the `flask` package specifically, it should also include `g` for the sake of completeness.
This commit is contained in:
parent
5b98266152
commit
e3bb34ec24
1 changed files with 1 additions and 1 deletions
|
|
@ -276,7 +276,7 @@ having to change some code. This can trivially be accomplished with
|
||||||
hooking the :data:`flask.appcontext_pushed` signal::
|
hooking the :data:`flask.appcontext_pushed` signal::
|
||||||
|
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
from flask import appcontext_pushed
|
from flask import appcontext_pushed, g
|
||||||
|
|
||||||
@contextmanager
|
@contextmanager
|
||||||
def user_set(app, user):
|
def user_set(app, user):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue