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

Add a settings option to allow MediaFile translations to be skipped #679

Merged
merged 2 commits into from Jun 22, 2019

Conversation

@stephencookdev
Copy link
Contributor

@stephencookdev stephencookdev commented Apr 9, 2019

This new setting is specifically targeting a fix for #675

To be clear, this isn't really a solution to the problem, basically the root of the issue here is that the translations lazy-eval property is largely inefficient (perhaps just in certain cases, but at Thread we're seeing this be really costly, given hundreds of MediaFiles)

But at the same time, as a feature I think it makes sense regardless - and it fortunately sidesteps the root issue very nicely.

@mjl
Copy link
Contributor

@mjl mjl commented Apr 11, 2019

Ah, nice, thank you. It gives an easy speed bump if translations aren't used (eg. I don't think we use mediafile translations. Anywhere).

Could you fix the travis check? (make line 143 in default_settings.py shorter, and perhaps move the "if trans" block into the if settings.FEINCMS_MEDIAFILE_TRANSLATIONS?

@stephencookdev
Copy link
Contributor Author

@stephencookdev stephencookdev commented Apr 15, 2019

@mjl sure thing - should be done now :)

@matthiask matthiask merged commit b1bdb11 into feincms:master Jun 22, 2019
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@matthiask
Copy link
Member

@matthiask matthiask commented Jun 22, 2019

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.