I have a following django model relationship:
class Project(models.Model):
pass
class Vehicle(models.Model):
project=ForeignKey(Project)
class Concept(models.Model):
vehicle=ManyToManyField(Vehicle)
class Analysis(models.Model):
concept=ForeignKey(Concept)
I want to sort out all Analyses objects which are connected to a Project with a known id. Concept can be for more than one vehicle but all the vehicles within a concept will be limited to only one Project. Or should i justadd to all following models a foreignkey with a project field?
Thanks