allow custom app label for ForeignKey

This commit is contained in:
Maxim Kurnikov committed 2019-07-24 13:38:49 +03:00
1 parent fa57fb0cbf
commit b86d33c718
2 files changed
+30

No files matched your search

+3
View File
@@ -50,6 +50,9 @@ def initialize_django(settings_module: str) -> Tuple['Apps', 'LazySettings']:
apps.get_models.cache_clear()
apps.get_swappable_settings_name.cache_clear()
if not settings.configured:
settings._setup()
apps.populate(settings.INSTALLED_APPS)
assert apps.apps_ready