#34153: Set uuidField as DEFAULT_AUTO_FIELD
-------------------------------------+-------------------------------------
Reporter: | Owner: alireza0sfr
alireza0sfr |
Type: New | Status: assigned
feature |
Component: Database | Version: 4.1
layer (models, ORM) | Keywords: uuidField, models,
Severity: Normal | autoField
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-------------------------------------+-------------------------------------
Hey there,
As you can set BigAutoField and SmallAutoField as the DEFAULT_AUTO_FIELD
per app or per project but there is no autoField to generate uuid
and you have to set uuid ids per model, I think this would lead to
conflicts between ids type in models,
and all models should follow the same pattern to create ids therefore it
would be wise to have uuidField as DEFAULT_AUTO_FIELD.
--
Ticket URL: <https://code.djangoproject.com/ticket/34153>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.