Skip to content

Commit

Permalink
The security context needs a theme attribute
Browse files Browse the repository at this point in the history
To use the new version of Flask-Security not only `admiin.base_template` must be replaced by `armin.theme.base_template` but the context dictionary must contain a `theme` attribute that should point to `admin.theme`.
  • Loading branch information
mapio authored Nov 28, 2024
1 parent 53d7bc4 commit cd8c142
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ Defining a `security_context_processor` function will take care of this for you:
return dict(
admin_base_template=admin.theme.base_template,
admin_view=admin.index_view,
theme=admin.theme,
h=admin_helpers,
)

Expand Down

0 comments on commit cd8c142

Please sign in to comment.