Think this may be a solution:
Models: Advice, AdviceLevel, Organisation
class Organsiation(models.Model):
title = models.CharField(max_length=150)
advice = models.ManyToManyField(Advice, through='AdviceLevel')
class AdviceLevel(models.Model):
advice = models.ForeignKey(Advice)
Sorry didnt know how else to describe what I am trying to do
I have 3 models
Advice
AdviceLevel
Organisation
So the idea is:
An organisation can dispense more than 1 advice:
class Organsiation(models.Model):
title = models.CharField(max_length=150)
advice = models.ManyToManyField(Adv
2 matches
Mail list logo