https://docs.djangoproject.com/en/dev/topics/db/models/#automatic-primary-
key-fields
None of the core backends support introspecting an AutoField, but some 3rd
party backends do (django-mssql). I propose adding a new DatabaseFeature
{{{can_introspect_autofield}}} that allows backends to decide whether they
can distinguish between an AutoField and an IntegerField.
--
Ticket URL: <https://code.djangoproject.com/ticket/21097>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: nobody => anonymous
* needs_docs: => 0
* status: new => assigned
* needs_tests: => 0
* needs_better_patch: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/21097#comment:1>
* owner: anonymous => manfre
--
Ticket URL: <https://code.djangoproject.com/ticket/21097#comment:2>
* has_patch: 0 => 1
* easy: 0 => 1
Comment:
https://github.com/django/django/pull/1621
--
Ticket URL: <https://code.djangoproject.com/ticket/21097#comment:3>
* stage: Unreviewed => Ready for checkin
Comment:
Seems to be ready. I can likely commit this tomorrow.
--
Ticket URL: <https://code.djangoproject.com/ticket/21097#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"c89d80e2cc9bf1f401aa3af4047bdc6f3dc5bfa4"]:
{{{
#!CommitTicketReference repository=""
revision="c89d80e2cc9bf1f401aa3af4047bdc6f3dc5bfa4"
Fixed #21097 - Added DatabaseFeature.can_introspect_autofield
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/21097#comment:5>