Skip to content

Commit 8e7a868

Browse files
authored
Set DEFAULT_AUTO_FIELD to AutoField (#385)
This setting is new in django 3.2. Setting it to the default AutoField does not change the schema, but is required to silence a warning.
1 parent f64f7d2 commit 8e7a868

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scionlab/settings/common.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@
6767
},
6868
]
6969

70+
# Use the default primary key field type AutoField (rather than the 64-bit BigAutoField)
71+
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
72+
7073
# ##### DJANGO RUNNING CONFIGURATION ######################
7174

7275
# the URL for static files

0 commit comments

Comments
 (0)