#31007: Make it possible to change the default AutoField to BigAutoField
-------------------------------------+-------------------------------------
Reporter: Caio | Owner: Caio Ariede
Ariede |
Type: New | Status: assigned
feature |
Component: Database | Version: master
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
This was initially proposed in this comment/PR:
https://github.com/django/django/pull/8924#issuecomment-516792989
1. I really like the proposed approach of having a `DEFAULT_AUTOFIELD`
setting.
2. For backwards compatibility, when `DEFAULT_AUTOFIELD` is not set, we
should keep the default behavior: `django.db.models.AutoField`
3. Whenever this setting is changed, it would affect all existing AND new
fields (pk and fk)
--
Ticket URL: <https://code.djangoproject.com/ticket/31007>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/053.e04437705d9e023dd274e1afd8f132a5%40djangoproject.com.