#NEWLINE# def validate_values( self , value ) : #NEWLINE# #INDENT# for ( k , v ) in value . viewitems ( ) : #NEWLINE# #INDENT# if ( not re . match ( CONFIGKEY_MATCH , k ) ) : #NEWLINE# #INDENT# raise serializers . ValidationError ( 'Config keys must start with a letter or underscore and only contain [A-z0-9_]' ) #NEWLINE# #UNINDENT# #UNINDENT# return self