From a33298ab49661c86bce64a27fa1d0df97fc6c825 Mon Sep 17 00:00:00 2001 From: Alessio Date: Tue, 11 Jul 2023 17:17:43 +0200 Subject: [PATCH] Fix for django >= 4.0 makemigrations It's necessary to specify the default_auto_field param in apps.py to inhibit generation of migrations in package --- django_fsm_log/apps.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django_fsm_log/apps.py b/django_fsm_log/apps.py index 50324ea..edc2b37 100644 --- a/django_fsm_log/apps.py +++ b/django_fsm_log/apps.py @@ -7,6 +7,7 @@ class DjangoFSMLogAppConfig(AppConfig): name = "django_fsm_log" verbose_name = "Django FSM Log" + default_auto_field = "django.db.models.AutoField" def ready(self): backend = import_string(settings.DJANGO_FSM_LOG_STORAGE_METHOD)