Open
Description
If the us_states module is imported within an AppConfig's ready() method, then an AppRegistryNotReady exception will be raised. The sorting for STATE_CHOICES and USPS_CHOICES is forcing resolution of the lazily translated state names at import time, but i18n isn't available yet.
In our case we're importing a view class in our ready() method to read a property off of it. Our views module imports something from models where we have a model that's using the USStateField which causes the import of us_states.
Metadata
Metadata
Assignees
Labels
No labels