Hi
My models are, essentially :
class Cable(models.Model):
cable = models.CharField(max_length=8)
class Connector(models.Model):
connector = models.CharField(max_length=8)
class Node(models.Model):
cable = models.ForeignKey(Cable)
connector = models ForeignKey(Connector)
So, a real world cable can be plugged in to no, one, or two connectors
(one at each end). The Node table describes the junctions between
cables and connectors.
Can I, without resorting to raw SQL, build a queryset that shows
connector-cable-connector?
Thanks for any input.
Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---