From 1014939126e54427dae1b3cca7bbe7dc344a0173 Mon Sep 17 00:00:00 2001 From: Leonardo Cavallucci Date: Tue, 26 Sep 2023 14:57:59 +0200 Subject: [PATCH] Set default_auto_field in AppConfig to avoid migrations problem if DEFAULT_AUTO_FIELD is different --- changes/181.bugfix | 1 + djangocms_page_meta/apps.py | 1 + 2 files changed, 2 insertions(+) create mode 100644 changes/181.bugfix diff --git a/changes/181.bugfix b/changes/181.bugfix new file mode 100644 index 0000000..3e24de1 --- /dev/null +++ b/changes/181.bugfix @@ -0,0 +1 @@ +Set default_auto_field in AppConfig to avoid migrations problem if DEFAULT_AUTO_FIELD is different diff --git a/djangocms_page_meta/apps.py b/djangocms_page_meta/apps.py index 79ebdec..39f76df 100644 --- a/djangocms_page_meta/apps.py +++ b/djangocms_page_meta/apps.py @@ -5,3 +5,4 @@ class PageMetaConfig(AppConfig): name = "djangocms_page_meta" verbose_name = _("django CMS Page Meta") + default_auto_field = "django.db.models.BigAutoField"