def remove_children(self, *subnodes): NodeSet.remove_children(self,*subnodes) for n in subnodes: c=n._downcast(klass=Contact) MembershipLog(village=self, contact=c, action='D').save()