#NEWLINE# @ classmethod #NEWLINE# def validate_update( cls , data , instance = None ) : #NEWLINE# #INDENT# data = cls . validate_json ( cls ) #NEWLINE# if data . get ( 'master_node_uid' ) : #NEWLINE# #INDENT# logger . warn ( 'Changing of master node uid is not allowed. It will be ignored' ) #NEWLINE# #UNINDENT# cls . validate_schema ( data , schema = master_node_settings . schema ) #NEWLINE# return data