These are chat archives for
Sign in to start talking
The Web framework for perfectionists with deadlines.
Mar 02 2016 03:58
Mar 02 2016 13:37
Can someone please tell me how to do this
Mar 02 2016 14:45
I think you have to add a receiver for pre_delete signal for your parent class
and manually delete related items
which will then emit signals
you want reverse behavior - run some code only when parent is deleted
Hmm I don't know what's going on here actually
what do you mean by "parent class"?
does Item and Transaction inherit from Packet?
Mar 02 2016 16:00
Yes they do
Can I set some attribute to Packet instance in the DeleteView which can be used later in the pre_delete signals??
Mar 02 2016 16:50
Here detailed pastebin
Mar 02 2016 21:14
Your pre_delete handlers could check if they received the correct instance before doing anything
I thin that's the cleanest solution