[Fix],Correct read in Jinja configuration and update docs of SupersetAppInitializer (#8908)

This commit is contained in:
zuodong 2020-01-03 13:44:25 +08:00 committed by Ville Brofeldt
parent 4ce5add5df
commit 1dbf17bebb
2 changed files with 3 additions and 5 deletions

View File

@ -81,7 +81,7 @@ class SupersetAppInitializer:
def pre_init(self) -> None:
"""
Called after all other init tasks are complete
Called before all other init tasks are complete
"""
wtforms_json.init()
@ -90,7 +90,7 @@ class SupersetAppInitializer:
def post_init(self) -> None:
"""
Called before any other init tasks
Called after any other init tasks
"""
pass

View File

@ -44,9 +44,7 @@ class JinjaContextManager:
}
def init_app(self, app):
self._base_context = self._base_context.update(
app.config["JINJA_CONTEXT_ADDONS"]
)
self._base_context.update(app.config["JINJA_CONTEXT_ADDONS"])
@property
def base_context(self):