Re: foreign key within a manytomany within a model in admin

2013-11-07 Thread MikeKJ
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)

foreign key within a manytomany within a model in admin

2013-11-07 Thread MikeKJ
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