mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
settings: Set Django auto field type explicitly
This is already the default (Django 3.2), however, setting it explicitly seems to avoid a warning while running 'django-admin makemigrations'. Tests: - Add SECRET_KEY to settings.py temporarily. Run the command 'django-admin makemigrations --pythonpath=. --settings=plinth.settings'. There should no warnings related DEFAULT_AUTO_FIELD not being set. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
613d3a856f
commit
05565b1c60
@ -78,6 +78,10 @@ DATABASES = {
|
||||
# Overridden based on command line argument --develop
|
||||
DEBUG = False
|
||||
|
||||
# This is already the default (Django 3.2), however, setting it explicitly
|
||||
# seems to avoid a warning while running 'django-admin makemigrations'.
|
||||
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
|
||||
|
||||
# Overridden based on the configuration key server_dir
|
||||
FORCE_SCRIPT_NAME = '/plinth'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user