#NEWLINE# def validate_last_name( self , data ) : #NEWLINE# #INDENT# if ( len ( data ) > 10 ) : #NEWLINE# #INDENT# raise serializers . ValidationError ( { #NEWLINE# #INDENT# 'id' : 'armageddon101' , #NEWLINE# 'detail' : 'Hey! You need a last name!' , #NEWLINE# 'meta' : 'something' , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# return data