Children nodes inherit property of parent

69 views
Skip to first unread message

João Pedro

unread,
Dec 14, 2020, 6:33:55 AM12/14/20
to django-mptt-dev
Hello,

Is there a way to make the children inherit properties of the parent node? For example, the root node has a field Color which has value "red".

All descendants would have their color as "red".

In order to change it, you'd need to change the root node.

I suspect that we can do it through overriding save method and also a signal. What do you think?

Cheers,
Reply all
Reply to author
Forward
0 new messages