#34938: Allow string based generators for AutoField
-------------------------------------+-------------------------------------
               Reporter:  Gökhan     |          Owner:  nobody
  Öztürk                             |
                   Type:  New        |         Status:  new
  feature                            |
              Component:  Database   |        Version:  5.0
  layer (models, ORM)                |       Keywords:  AutoField, string-
               Severity:  Normal     |  based-ids
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 There are other alternative unique identifiers can be used in DB objects.
 UUID is not exactly new but can be used. Other alternative ones are `cuid`
 and `nanoid`.

 Current implementation of `django.db.models.fields.AutoField` is being
 extended from `IntegerField`.
 I tried to create another Base AutoField that is extending from
 `CharField` but there is a guard that checks if custom AutoField is being
 extended from `AutoField` or not.

 I do not have a clear idea to accomplish this.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34938>
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/0107018b8119a02b-ecab9542-3448-4921-911b-0ba3db19162c-000000%40eu-central-1.amazonses.com.

Reply via email to