#NEWLINE# def validate_first_name( self , data ) : #NEWLINE# #INDENT# if ( len ( self ) > 10 ) : #NEWLINE# #INDENT# raise serializers . ValidationError ( "There's a problem with first name" ) #NEWLINE# #UNINDENT# return data