Change DEFAULT_AUTO_FIELD to BigAutoField #5998

Closed
opened 2025-12-29 19:35:34 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Jan 25, 2022).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

Update Django's default "auto" field to use 64-bit integers:

DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'

Justification

We can ditch the BigIDModel class that was introduced prior to the introduction of Django's DEFAULT_AUTO_FIELD setting.

Originally created by @jeremystretch on GitHub (Jan 25, 2022). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes Update Django's default "auto" field to use 64-bit integers: ``` DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' ``` ### Justification We can ditch the BigIDModel class that was introduced prior to the introduction of Django's [`DEFAULT_AUTO_FIELD` setting](https://docs.djangoproject.com/en/3.2/ref/settings/#std:setting-DEFAULT_AUTO_FIELD).
adam added the status: acceptedtype: housekeeping labels 2025-12-29 19:35:34 +01:00
adam closed this issue 2025-12-29 19:35:35 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5998