def check_modify_host(update_data):
 if ('status' in update_data):
  raise model_logic.ValidationError({'status': 'Host status can not be modified by the frontend.'})

def check_modify_host ( update_data ) : if ( 'status' in update_data ) : raise model_logic . ValidationError ( { 'status' : 'Host status can not be modified by the frontend.' } )
sanity check modify_host* requests .