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

Force list for lang_dict['fallbacks'] #113

Merged
merged 1 commit into from
Feb 24, 2016

Conversation

mkoistinen
Copy link
Contributor

This appears to be a regression from v1.5.x to v1.6.0

What is not clear is if this is the correct fix, but it should be benign regardless.

I think the real issue is that now fallbacks should be a list. The problem is if you don't explicitly set fallbacks in the settings dict, then Parler will do fallbacks=settings.LANGUAGE_CODE, but as a string, not as a list. Perhaps further fixes will be required so that Parler will set fallbacks=[settings.LANGAUGE_CODE] instead.

For those searching, the error one might get is: TypeError: can only concatenate list (not "unicode") to list. The work-around until this PR is merged and released is to explicitly set your fallbacks to something (even an empty list []is fine), just don't let Parler do it for you.

vdboor added a commit that referenced this pull request Feb 24, 2016
Force list for lang_dict['fallbacks']
@vdboor vdboor merged commit 95f1111 into django-parler:master Feb 24, 2016
@vdboor
Copy link
Contributor

vdboor commented Feb 24, 2016

Thanks for the PR!

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

Successfully merging this pull request may close these issues.

None yet

2 participants