cordery / django-countries-plus

Django model & fixture representing all top level country data from Geonames.org
MIT License
45 stars 23 forks source link

Change gettext to gettext_lazy in Country model #28

Closed Ivan-Vinitskyi closed 2 months ago

Ivan-Vinitskyi commented 10 months ago

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 commented 3 months ago

This is causing Exceptions with Django 5:

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