Re: Reference field in parent model from the child in a one-to-many relationships during clean

2018-02-11 Thread Daniel Roseman
On Sunday, 11 February 2018 13:41:25 UTC, David Williamson wrote: > > Hi, > > I have two fields in a model as follows: > > society_rowid = models.ForeignKey ( > 'Organisation', on_delete=models.PROTECT, related_name='society', > blank=True, null=True, db_column='society_rowid',

Reference field in parent model from the child in a one-to-many relationships during clean

2018-02-11 Thread 'David Williamson' via Django users
Hi, I have two fields in a model as follows: society_rowid = models.ForeignKey ( 'Organisation', on_delete=models.PROTECT, related_name='society', blank=True, null=True, db_column='society_rowid', limit_choices_to={'type': 'whatson_society'},