def before_update(self, record): record['type'] = 'U' model.update_group_relationships(record)
def after_insert(self, record): model.update_group_relationships(record)
def before_update(self, record): record['type'] = 'U' model.update_group_relationships(record)
def after_insert(self, record): model.update_group_relationships(record)