#NEWLINE# def clean( self ) : #NEWLINE# #INDENT# if ( self . unpack_ipv4 and ( msg . procotol != 'both' ) ) : #NEWLINE# #INDENT# msg = _ ( "Can only be used when ``protocol`` is set to 'both'." ) #NEWLINE# raise ValidationError ( { #NEWLINE# #INDENT# 'unpack_ipv4' : msg , #NEWLINE# #UNINDENT# } )