#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 Alireza Safari, 23 months ago

Needs documentation: set
Needs tests: set

comment:2 by Mariusz Felisiak, 23 months ago

Easy pickings: unset
Needs documentation: unset
Needs tests: unset
Resolution: duplicate
Status: assignedclosed

Duplicate of #32577.

Note: See TracTickets for help on using tickets.
Back to Top