I've got a bunch of classes that inherit from a common base class. This common base class does some cleaning up in its delete
method.
class Base(models.Model):
def delete(self):
print "foo"
class Child(Base):
def delete(self):
print "bar"
super(Child, self).delete()
When I call delete on the Child from the shell I get:
bar
foo
as expected
When I use the admin, the custom delete functions don't seem to get called. Am I missing something obvious?
Thanks,
Dom
p.s. This is obviously a simplified version of the code I'm using, apologies if it contains typos. Feel free to leave a comment and I'll fix it.