About Gotchas with BigAutoField

Avoid adding

1
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"

in your project settings, because it will create migrations for backward-compatible external apps inside side-packages.

Instead, set

1
DEFAULT_AUTO_FIELD = "django.db.models.AutoField"

in the settings and define

1
default_auto_field = "django.db.models.BigAutoField"

in each app's configuration.

Tips and Tricks Programming Django 4.2 Django 3.2