Skip to content
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

aldryn_search indexing incompatibility #31

Closed
SteinRobert opened this issue May 16, 2017 · 2 comments
Closed

aldryn_search indexing incompatibility #31

SteinRobert opened this issue May 16, 2017 · 2 comments

Comments

@SteinRobert
Copy link

As aldryn_search is trying to index the contents of every plugin the VideoSourcePlugin (and I suppose it's the same with the VideoTrackPlugin) breaks when trying to publish a page.
Both plugins are trying to access the template through the context in the get_render_template method which does not work when a page is published and aldryn_search is trying to render it.
Line in the plugin:
https://github.com/divio/djangocms-video/blob/master/djangocms_video/cms_plugins.py#L72
Line in aldryn_search:
https://github.com/aldryn/aldryn-search/blob/master/aldryn_search/helpers.py#L48

If I got the problem right I guess it would help to add search_fields to the models.

@FinalAngel
Copy link
Member

@SteinRobert thank you very much for the report, would you be able to propose a pull request and test it if that solved your problem?

@SteinRobert
Copy link
Author

SteinRobert commented May 26, 2017

I think we should resolve this issue first: divio/aldryn-search#73.
Having done that, this should be fine too.
Otherwise we could temporarily apply the same fix as the following one:
django-cms/djangocms-googlemap@49d86cb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants