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

(UPDATE) add explicit language codes validation in favor of keeping default languages ordering in project #52

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

dfirst
Copy link
Contributor

@dfirst dfirst commented Apr 29, 2019

No description provided.

@coveralls
Copy link

coveralls commented Apr 29, 2019

Coverage Status

Coverage remained the same at ?% when pulling d8e03fc on dfirst:UPDATE_explicit_language_duplicates_validation into 862d4f5 on zostera:master.

if len(available_languages) != len(set(available_languages)):
raise ImproperlyConfigured(
"Languages should not contains duplicates: {}".format(available_languages)
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This message should mention the setting a user should adjust in order to fix it (something like MODELTRANS_AVAILABLE_LANGUAGES or LANGUAGES should not contain duplicates)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed the message.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jieter can you looks at this PR please?

@dfirst dfirst force-pushed the UPDATE_explicit_language_duplicates_validation branch from 8801d90 to 013fa26 Compare May 17, 2019 00:44
@dfirst dfirst force-pushed the UPDATE_explicit_language_duplicates_validation branch from 013fa26 to fef6923 Compare May 17, 2019 00:48
@dfirst dfirst force-pushed the UPDATE_explicit_language_duplicates_validation branch from fef6923 to fce5f72 Compare May 27, 2019 20:23
@dfirst dfirst force-pushed the UPDATE_explicit_language_duplicates_validation branch from baa56d2 to d8e03fc Compare June 5, 2019 11:03
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.

3 participants