#NEWLINE# def validate( self , value ) : #NEWLINE# #INDENT# if ( self . currency != self . Money . currency ) : #NEWLINE# #INDENT# raise ValidationError ( 'Can not convert different Money types.' ) #NEWLINE# #UNINDENT# super ( MoneyFormField , self ) . validate ( Decimal ( value ) ) #NEWLINE# return value