From 13c8a1ae6e9bb6ec5497af9299eee77eb293ba24 Mon Sep 17 00:00:00 2001 From: arcstur Date: Thu, 26 Feb 2026 01:34:30 -0300 Subject: [PATCH] fix: define DEFAULT_AUTO_FIELD --- editgroups/settings/common.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/editgroups/settings/common.py b/editgroups/settings/common.py index 8970cb6..9441001 100644 --- a/editgroups/settings/common.py +++ b/editgroups/settings/common.py @@ -175,6 +175,11 @@ os.path.join(BASE_DIR, "static"), ] +# Default primary key field type +# https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field + +DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" + # Taken from https://gist.github.com/DamianZaremba/e6d65a200f7c451db80939e7e9e4f2c8 # Shrink specific columns down, so the key combination for the constraints # aren't larger than the max legnth, when not using innodb_large_prefix.