Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
If I understand correctly, it doesn't matter here that B inherits from A. You just have a corresponding object of class B for every object of class A, right? Then signals.pre_delete will help you
If I understand correctly, what you need is OneToOneField :
class B(A):
a = models.OneToOneField(A, parent_link=True)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question