Opened 14 years ago

Closed 14 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)

related_db_type.diff (5.6 KB ) - added by Waldemar Kornewald 14 years ago.
patch against trunk

Download all attachments as: .zip

Change History (2)

by Waldemar Kornewald, 14 years ago

Attachment: related_db_type.diff added

patch against trunk

comment:1 by Russell Keith-Magee, 14 years ago

milestone: 1.3
Resolution: duplicate
Status: newclosed
Summary: [patch] cleanup of ForeignKey.db_typeCleanup of ForeignKey.db_type

Duplicate of #13774

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