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

Change gettext to gettext_lazy in Country model #28

Closed
Ivan-Vinitskyi opened this issue Jan 8, 2024 · 1 comment · Fixed by #32
Closed

Change gettext to gettext_lazy in Country model #28

Ivan-Vinitskyi opened this issue Jan 8, 2024 · 1 comment · Fixed by #32

Comments

@Ivan-Vinitskyi
Copy link

In general it is better to use gettext_lazy:
https://github.com/cordery/django-countries-plus/blob/1eb0a0b61c83669224c33952b3fb4096c83cb587/countries_plus/models.py#L6C38-L6C45

@kissgyorgy
Copy link
Contributor

This is causing Exceptions with Django 5:

AppRegistryNotReady: The translation infrastructure cannot be initialized before the apps registry is ready.

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 a pull request may close this issue.

2 participants