Skip to content

Commit c9aaf5a

Browse files
authored
fix: define DEFAULT_AUTO_FIELD (#169)
1 parent 727fac7 commit c9aaf5a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

editgroups/settings/common.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@
175175
os.path.join(BASE_DIR, "static"),
176176
]
177177

178+
# Default primary key field type
179+
# https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field
180+
181+
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
182+
178183
# Taken from https://gist.github.com/DamianZaremba/e6d65a200f7c451db80939e7e9e4f2c8
179184
# Shrink specific columns down, so the key combination for the constraints
180185
# aren't larger than the max legnth, when not using innodb_large_prefix.

0 commit comments

Comments
 (0)