Foreign Key Deletion Problem

2014-11-25 Thread Jann Haber
Dear Django Users, I have been running into a problem with the app I am developing and I haven't been able to find a good solution. Suppose I have the following model: class MyModel(models.Model): a = models.CharField(max_length=255, null=True, blank=True) b = models.ForeignKey('MyOther

Re: Foreign Key Deletion Problem

2014-11-26 Thread Jann Haber
Hi Simon, thank you very much for your help. I wasn't aware of the possibility of callable class instances. This solved my problem entirely. Regards, Jann On Tuesday, November 25, 2014 10:07:57 PM UTC+1, Simon Charette wrote: > > Hi Jann, > > I think you'll need to write a custom deletion hand