mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-10-10 23:29:18 +08:00
allow custom app label for ForeignKey
This commit is contained in:
1 parent
fa57fb0cbf
commit
b86d33c718
2 files changed
+30
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user