Make it possible to change the default AutoField to BigAutoField.
This was initially proposed in this comment/PR: https://github.com/django/django/pull/8924#issuecomment-516792989
- I really like the proposed approach of having a
DEFAULT_AUTOFIELD setting.
- For backwards compatibility, when
DEFAULT_AUTOFIELD is not set, we should keep the default behavior: django.db.models.AutoField
- Whenever this setting is changed, it would affect all existing AND new fields (pk and fk)
Change History
(14)
| Resolution: |
→ wontfix
|
| Status: |
assigned → closed
|
| Summary: |
Make it possible to change the default AutoField to BigAutoField → Make it possible to change the default AutoField to BigAutoField.
|
| Resolution: |
wontfix
|
| Status: |
closed → new
|
| Owner: |
changed from Caio Ariede to Tom Forbes
|
| Status: |
new → assigned
|
| Has patch: |
set
|
| Needs documentation: |
set
|
| Triage Stage: |
Unreviewed → Accepted
|
| Needs documentation: |
unset
|
| Patch needs improvement: |
set
|
| Patch needs improvement: |
unset
|
| Patch needs improvement: |
set
|
| Patch needs improvement: |
unset
|
| Triage Stage: |
Accepted → Ready for checkin
|
| Resolution: |
→ fixed
|
| Status: |
assigned → closed
|
I think we need a discussion and consensus on the DevelopersMailingList before we move forward with this ticket. Adding a new setting is always a bit controversial and changing the "default"
AutoFieldfor all tables is a complicated and error-prone task. That's why we need a clear path, I'm closing before we finish a discussion.