From: Tim Orling <ticotimo@gmail.com>
To: toaster@lists.yoctoproject.org
Cc: David.Reyna@windriver.com
Subject: [PATCH 4/7] toaster: set DEFAULT_AUTO_FIELD
Date: Sat, 12 Mar 2022 12:31:25 -0800 [thread overview]
Message-ID: <3b5d2005a984f98190a84bdee908bd08c9025784.1647116564.git.tim.orling@konsulko.com> (raw)
In-Reply-To: <cover.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 <tim.orling@konsulko.com>
---
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
next prev parent reply other threads:[~2022-03-12 20:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-12 20:31 [PATCH 0/7] Upgrade to Django 3.2 LTS Tim Orling
2022-03-12 20:31 ` [PATCH 1/7] toaster-requirements.txt: " Tim Orling
2022-03-12 20:31 ` [PATCH 2/7] toaster: Update docs links in templates Tim Orling
2022-03-12 20:31 ` [PATCH 3/7] toaster: orm/models -- drop django.utils.six Tim Orling
2022-03-12 20:31 ` Tim Orling [this message]
2022-03-12 20:31 ` [PATCH 5/7] toaster: migratation for models.BigAutoField Tim Orling
2022-03-12 20:31 ` [PATCH 6/7] bitbake: buildinfohelper.py fix for Django 3.2 Tim Orling
2022-03-12 20:31 ` [PATCH 7/7] toaster: drop landing_not_managed template Tim Orling
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3b5d2005a984f98190a84bdee908bd08c9025784.1647116564.git.tim.orling@konsulko.com \
--to=ticotimo@gmail.com \
--cc=David.Reyna@windriver.com \
--cc=toaster@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).