Opened 12 years ago
Closed 12 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:1 by , 12 years ago
| Has patch: | set |
|---|
comment:2 by , 12 years ago
| Easy pickings: | unset |
|---|---|
| Needs tests: | set |
| Triage Stage: | Unreviewed → Accepted |
| Version: | 1.5 → master |
comment:3 by , 12 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
https://github.com/django/django/pull/1617