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
Chooser breaks in Wagtail 2.4 #37
Comments
Hey Evan, |
Hi Dan, FYI Base on your works, I do some changes but I don't know how to send a pull request Best, |
Hey yyken, |
@DanSGraham I'll give your fork a try today – thanks! |
I have also written a new module -- wagtailaudio -- that does just audio files and has several improvements over the wagtailmedia module. If all you need is audio then take a look at that module! |
Hey Dan, Your (and yyken's) updates are working for me. Thank you, and nice job! 👍🏻 The only issue we ran into is that we have other migrations that relied on Out of curiosity–– did you remove the old migrations just for cleanliness' sake? I checked to see if your changes required any new migrations, and it didn't look like they did. |
- Eliminate template tags from the .js template. Any dynamic data needed by the template can instead be passed in a dict to render_modal_workflow, as a keyword argument json_data; this data will then be available as the second parameter of the JavaScript function. Re torchbox#34 Re torchbox#37
I made it work! check out my PR |
Kindly include usage documentation. |
Eliminate template tags from the .js template. Any dynamic data needed by the template can instead be passed in a dict to render_modal_workflow, as a keyword argument json_data; this data will then be available as the second parameter of the JavaScript function. Re torchbox#34 Re torchbox#37
Fixed in #43. |
The fix should now be released on PyPI, |
Using...
Wagtail 2.4rc1 (release candidate 1)
Django 2.0
When trying to open a Media Chooser modal, the following error is raised:
The change, along with a note about how to update affected code, is described here (https://docs.wagtail.io/en/v2.3/releases/2.2.html#javascript-templates-in-modal-workflows-are-deprecated).
The text was updated successfully, but these errors were encountered: