Re: Database Modeling Help - Relating Instance Fields to Instance Fields

2016-03-14 Thread MattDale
I figured it out, I think. If I create an intermediary table like this: class PatchConnection(models.Model): connection = models.ForeignKey(Connection) content_type = models.ForeignKey(ContentType, on_delete=models.CASCADE) object_id = models.PositiveIntegerField() content_object =

Database Modeling Help - Relating Instance Fields to Instance Fields

2016-03-13 Thread MattDale
I'm working on an A/V Cable and Equipment management project and have run into an issue. The application is functioning as designed, but I'd like to add another feature that keeps track of connections between equipment and cables. Since the app is working as is, I'd like to fit this feature in