Opened 2 years ago
Closed 2 years ago
#34153 closed New feature (duplicate)
Set uuidField as DEFAULT_AUTO_FIELD
Reported by: | Alireza Safari | Owned by: | Alireza Safari |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 4.1 |
Severity: | Normal | Keywords: | uuidField, models, autoField |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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.
Change History (2)
comment:1 by , 2 years ago
Needs documentation: | set |
---|---|
Needs tests: | set |
comment:2 by , 2 years ago
Easy pickings: | unset |
---|---|
Needs documentation: | unset |
Needs tests: | unset |
Resolution: | → duplicate |
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Duplicate of #32577.