[PATCH 4/7] toaster: set DEFAULT_AUTO_FIELD

Tim Orling <[email protected]>
Newsgroups org.yoctoproject.lists.toaster
Message-ID <3b5d2005a984f98190a84bdee908bd08c9025784.1647116564.git.tim.orling@konsulko.com>
New in Django 3.2.

Silence warnings by adding:

DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'

in toastermain/settings.py

Signed-off-by: Tim Orling <[email protected]>
---
 bitbake/lib/toaster/toastermain/settings.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bitbake/lib/toaster/toastermain/settings.py b/bitbake/lib/toaster/toastermain/settings.py
index a4b370c8d4c..609c85d9d8a 100644
--- a/bitbake/lib/toaster/toastermain/settings.py
+++ b/bitbake/lib/toaster/toastermain/settings.py
@@ -39,6 +39,9 @@ DATABASES = {
     }
 }
 
+# New in Django 3.2
+DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
+
 # Needed when Using sqlite especially to add a longer timeout for waiting
 # for the database lock to be  released
 # https://docs.djangoproject.com/en/1.6/ref/databases/#database-is-locked-errors
-- 
2.30.2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.