-
Notifications
You must be signed in to change notification settings - Fork 71
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
MediaChooserPanel not compatible with Wagtail 2 #34
Comments
Yeah I've experience this problem too. The error I got was: My less than ideal workaround was to add a streamfield containing a custom media chooser block that inherits from AbstractMediaChooserBlock. |
- 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
Works in my branch, if you use |
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. |
From what I understand this particular issue isn't fixed. #40 would be the fix for this, or as @kaduuuken suggests people can also use At the moment the README only mentions I think my project uses the |
Fixed in #40, I'll release this shortly. |
The current implementation of MediaChooserPanel does not work in Wagtail 2 as the expected return value for bind_to_model is an object, not a type.
The text was updated successfully, but these errors were encountered: