def is_action_allowed(self, name):
    if ((name == 'delete') and (not self.can_delete)):
        return False
    return super(ModelView, self).is_action_allowed(name)
def is_action_allowed(self, name):
    if ((name == 'delete') and (not self.can_delete)):
        return False
    return super(ModelView, self).is_action_allowed(name)