-
Notifications
You must be signed in to change notification settings - Fork 58
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
Add support for snippets registered with register_snippet
as a function instead of decorator (Wagtail 4.1+)
#309
Comments
please add the full traceback |
@zerolab I apologize, here it is: Traceback
|
Getting slightly different traceback after upgrading to Traceback
My HeroInteriorBlock contains the following code:
|
register_snippet
as a function instead of decorator
Thanks for this @danmess. It most certainly helps. Registering snippets via We need to adjust our registry to support that model |
register_snippet
as a function instead of decoratorregister_snippet
as a function instead of decorator (Wagtail 4.1+)
Thank you for your quick replies, @zerolab! For everyone else encountering this issue current workaround would be to serialize
|
I am trying to customize snippet view following official docs ( https://docs.wagtail.org/en/stable/topics/snippets.html#customising-snippets-admin-views ), but getting a KeyError at /api/graphql/.
Code to reproduce:
wagail_hooks.py
models.py
wagtail = "4.2rc1"
wagtail-grapple = "^0.18.1"
The text was updated successfully, but these errors were encountered: