From ce27ed733a6efabf83d82c1f47de82c18beeabdc Mon Sep 17 00:00:00 2001 From: Professor Colin Turner Date: Mon, 29 Nov 2021 21:48:19 +0000 Subject: [PATCH] Allow for big integer primary key fields --- WAM/settings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/WAM/settings.py b/WAM/settings.py index c77acf9..ecc25c4 100644 --- a/WAM/settings.py +++ b/WAM/settings.py @@ -114,4 +114,7 @@ MEDIA_ROOT = os.path.join(BASE_DIR, 'media') MEDIA_URL = '/media/' -LOGOUT_REDIRECT_URL = 'logged out' \ No newline at end of file +LOGOUT_REDIRECT_URL = 'logged out' + +# New in Django 3.2, we should set an explicit automatic primary key type +DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' \ No newline at end of file