[Django] #34153: Set uuidField as DEFAULT_AUTO_FIELD

5 views
Skip to first unread message

Django

unread,
Nov 12, 2022, 8:36:05 AM11/12/22
to django-...@googlegroups.com
#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.

Django

unread,
Nov 12, 2022, 8:36:18 AM11/12/22
to django-...@googlegroups.com
#34153: Set uuidField as DEFAULT_AUTO_FIELD
-------------------------------------+-------------------------------------
Reporter: Alireza Safari | Owner: Alireza
| Safari
Type: New feature | Status: assigned
Component: Database layer | Version: 4.1
(models, ORM) |
Severity: Normal | Resolution:
Keywords: uuidField, models, | Triage Stage:
autoField | Unreviewed
Has patch: 0 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Alireza Safari):

* needs_docs: 0 => 1
* needs_tests: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/34153#comment:1>

Django

unread,
Nov 12, 2022, 9:17:58 AM11/12/22
to django-...@googlegroups.com
#34153: Set uuidField as DEFAULT_AUTO_FIELD
-------------------------------------+-------------------------------------
Reporter: alireza0sfr | Owner:
| alireza0sfr
Type: New feature | Status: closed

Component: Database layer | Version: 4.1
(models, ORM) |
Severity: Normal | Resolution: duplicate

Keywords: uuidField, models, | Triage Stage:
autoField | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* status: assigned => closed
* needs_docs: 1 => 0
* resolution: => duplicate
* needs_tests: 1 => 0
* easy: 1 => 0


Comment:

Duplicate of #32577.

--
Ticket URL: <https://code.djangoproject.com/ticket/34153#comment:2>

Reply all
Reply to author
Forward
0 new messages