Opened 11 years ago

Closed 11 years ago

#21090 closed New feature (fixed)

inspectdb shouldn't include 'models.' prefix if field_type is a dotted path

Reported by: Michael Manfre Owned by: nobody
Component: Core (Management commands) Version: dev
Severity: Normal Keywords: inspectdb
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: yes Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

To allow backends to better provide custom field types to inspectdb, it should not include the 'models.' prefix if the field_type contains a dot.

This would allow for:

id = sqlserver_ado.fields.BigAutoField()

instead of:

id = models.sqlserver_ado.fields.BigAutoField()

This ticket intentionally does not address the lack of import for sqlserver_ado.fields

Change History (3)

comment:2 by Tim Graham, 11 years ago

Easy pickings: unset
Needs tests: set
Triage Stage: UnreviewedAccepted
Version: 1.5master

comment:3 by Tim Graham <timograham@…>, 11 years ago

Resolution: fixed
Status: newclosed

In e61cc87129727c66120b67c376feda3533544db1:

Fixed #21090 -- Allowed backends to provide dotted field path to inspectdb.

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