From badd8922fb3cb4e0769b4791c398480c8d4a3a71 Mon Sep 17 00:00:00 2001 From: Zac Bohon Date: Mon, 2 Aug 2021 23:41:36 -0500 Subject: [PATCH] Added DEFAULT_AUTO_FIELD to settings.py Resolves warnings thrown by PyTest. see https://dev.to/weplayinternet/upgrading-to-django-3-2-and-fixing-defaultautofield-warnings-518n --- brutaldon/settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/brutaldon/settings.py b/brutaldon/settings.py index f7f80c2..5fe9ea0 100644 --- a/brutaldon/settings.py +++ b/brutaldon/settings.py @@ -211,5 +211,8 @@ def CHECK_INSTANCE_URL(url, redirect): return redirect(RICKROLL_URL) +# See https://dev.to/weplayinternet/upgrading-to-django-3-2-and-fixing-defaultautofield-warnings-518n +DEFAULT_AUTO_FIELD='django.db.models.AutoField' + # Version number displayed on about page BRUTALDON_VERSION = "2.15.0"