def patch_user_admin():
 if (not getattr(UserAdmin, '_monkeyed', False)):
  UserAdmin._monkeyed = True
  UserAdmin.actions = [_activate_users, _deactivate_users]

def patch_user_admin ( ) : if ( not getattr ( UserAdmin , '_monkeyed' , False ) ) : UserAdmin . _monkeyed = True UserAdmin . actions = [ _activate_users , _deactivate_users ]
prevent user objects from being deleted .