From 5607b6fe168f4142dc2c1f343e782f232206ddee Mon Sep 17 00:00:00 2001 From: Peter-van-Tol Date: Wed, 16 Jun 2021 13:53:44 +0200 Subject: [PATCH 1/2] Create apps.py Solves #873 --- reversion/apps.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 reversion/apps.py diff --git a/reversion/apps.py b/reversion/apps.py new file mode 100644 index 00000000..e6fd38fd --- /dev/null +++ b/reversion/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + +class ReversionConfig(AppConfig): + name = 'reversion' + default_auto_field = 'django.db.models.BigAutoField' From 17ff24ec2d59303abd4890ada444f6860dbf18a2 Mon Sep 17 00:00:00 2001 From: Peter-van-Tol Date: Wed, 16 Jun 2021 19:48:41 +0200 Subject: [PATCH 2/2] Flake8 compliant + AutoField Changed BigAutoField to AutoField to prevent migrations --- reversion/apps.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reversion/apps.py b/reversion/apps.py index e6fd38fd..464b2231 100644 --- a/reversion/apps.py +++ b/reversion/apps.py @@ -1,5 +1,6 @@ from django.apps import AppConfig + class ReversionConfig(AppConfig): name = 'reversion' - default_auto_field = 'django.db.models.BigAutoField' + default_auto_field = 'django.db.models.AutoField'