Re: foreign key exception where objects manager is customized

2008-09-23 Thread Gio
I had a similar issue, solved with a trick. Try to explicit a save() method for your SuperDelegate this way: def save(self, *args, **kwargs): super(SuperDelegate, self).save(*args, **kwargs) Giovanni On 6 Set, 12:09, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > A foreignkey in a

foreign key exception where objects manager is customized

2008-09-06 Thread [EMAIL PROTECTED]
A foreignkey in a model with a customised objects manager is causing an exception when that parent model is saved. Model 'SuperDelegate' has a boolean field 'is_active'. 'Delegate' model has a ForeignKey to SuperDelegate. I only want to ever show active SuperDelegates so the objects manager has t