From 9fa3dcda4cd64c37373965a9111ce52242bcc88e Mon Sep 17 00:00:00 2001 From: Xander Vertegaal Date: Fri, 22 Nov 2024 15:49:09 +0100 Subject: [PATCH] Explicitly set DEFAULT_AUTO_FIELD --- backend/lettercraft/settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/lettercraft/settings.py b/backend/lettercraft/settings.py index e6939201..a0c23967 100644 --- a/backend/lettercraft/settings.py +++ b/backend/lettercraft/settings.py @@ -164,6 +164,10 @@ "USER_DETAILS_SERIALIZER": "user.serializers.CustomUserDetailsSerializer", } +# Explicitly sets the auto field to the Django 3.2+ default, +# cf. https://docs.djangoproject.com/en/4.2/releases/3.2/#customizing-type-of-auto-created-primary-keys +# Silences warnings from django-allauth. +DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' # Internationalization # https://docs.djangoproject.com/en/3.0/topics/i18n/