I have a default m2m relationship between Stage and Pipeline (without through model). I have another model (StageHistory) that needs a m2o relationship with the data saved on the table created by the m2m relationship stage-pipeline.
So what i should write on "pipeline_stage" field ?
class Stage(models.Model):
#other fields
class Pipeline(models.Model):
stages = models.ManyToManyField('Stage')
#other fields
class StageHistory(models.Model):
pipeline_stage = models.ForeignKey(HERE)
Should I create a "through" model ?