diff options
| author | Hasan Ramezani <hasan.r67@gmail.com> | 2021-06-21 16:57:06 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-06-22 20:47:15 +0200 |
| commit | 7a9745fed498f69c46a3ffa5dfaff872e0e1df89 (patch) | |
| tree | 7ebe98cb21ffdca2c48cd6c075e355ec00236ea1 /django | |
| parent | 1697098795707bd39501d9ceddd3d9be93f8d549 (diff) | |
Fixed #32863 -- Skipped system check for specifying type of auto-created primary keys on models with invalid app_label.
Regression in b5e12d490af3debca8c55ab3c1698189fdedbbdb.
Thanks Iuri de Silvio for the report.
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/models/base.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/db/models/base.py b/django/db/models/base.py index 0f8af9f920..b1202f51c7 100644 --- a/django/db/models/base.py +++ b/django/db/models/base.py @@ -1310,6 +1310,7 @@ class Model(metaclass=ModelBase): cls._meta.pk.remote_field.parent_link ) and not settings.is_overridden('DEFAULT_AUTO_FIELD') and + cls._meta.app_config and not cls._meta.app_config._is_default_auto_field_overridden ): return [ |
