-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.9rc1 regression in Block.render() #3346
Milestone
Comments
mvantellingen
added a commit
to mvantellingen/wagtail
that referenced
this issue
Feb 8, 2017
If ``Block.get_context()`` was overriden without accepting the ``parent_context`` kwarg the fallback handling threw an exception if ``context`` was None. See wagtail#3346
gasman
pushed a commit
that referenced
this issue
Feb 8, 2017
If ``Block.get_context()`` was overriden without accepting the ``parent_context`` kwarg the fallback handling threw an exception if ``context`` was None. See #3346
gasman
pushed a commit
that referenced
this issue
Feb 8, 2017
If ``Block.get_context()`` was overriden without accepting the ``parent_context`` kwarg the fallback handling threw an exception if ``context`` was None. See #3346
Fixed in #3347 |
trumpet2012
pushed a commit
to morris-tech/wagtail
that referenced
this issue
Feb 21, 2017
If ``Block.get_context()`` was overriden without accepting the ``parent_context`` kwarg the fallback handling threw an exception if ``context`` was None. See wagtail#3346
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
Block.render()
(seewagtail/wagtail/wagtailcore/blocks/base.py
Line 229 in 827149f
wagtail/wagtail/wagtailcore/blocks/base.py
Line 250 in 827149f
We hit this issue since we implemented a
get_context()
override on a subclass of ablocks.StructBlock
. Adding the parent_context kwarg and passing it down works the issue.cc @mikedebock
The text was updated successfully, but these errors were encountered: