Opened 15 years ago
Closed 15 years ago
#14856 closed (duplicate)
Cleanup of ForeignKey.db_type
| Reported by: | Waldemar Kornewald | Owned by: | nobody |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | dev |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The attached patch cleans up the db_type() function for ForeignKey. It adds a Field.related_db_type() method which returns the db_type for the ForeignKey pointing at that field. Previously, ForeignKey.db_type() had hard-coded isinstance() checks.
Attachments (1)
Change History (2)
by , 15 years ago
| Attachment: | related_db_type.diff added |
|---|
comment:1 by , 15 years ago
| milestone: | 1.3 |
|---|---|
| Resolution: | → duplicate |
| Status: | new → closed |
| Summary: | [patch] cleanup of ForeignKey.db_type → Cleanup of ForeignKey.db_type |
Duplicate of #13774
Note:
See TracTickets
for help on using tickets.
patch against trunk