#23748: inspectdb converts auto increment primary keys into primary key
models.IntegerField() rather than primary key models.AutoField()
-------------------------------+--------------------------------------
Reporter: paulcdejean | Owner: nobody
Type: Uncategorized | Status: closed
Component: Utilities | Version: 1.7
Severity: Normal | Resolution: invalid
Keywords: inspectdb | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Comment (by claudep):
There is a `can_introspect_autofield` flag set to `False` in
`django/db/backends/__init__.py`, and this flag is not set anywhere else
(see c89d80e2cc9bf1f401aa3af4047bdc6f3dc5bfa4). I'm not saying that core
backends *cannot* introspect `AutoField`, but currently none of them
implement the needed discovery code.
--
Ticket URL: <https://code.djangoproject.com/ticket/23748#comment:3>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/069.3ab3d61a3baa9e8570e42847d96d12d2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.