#NEWLINE# def clean_amount( self ) : #NEWLINE# #INDENT# amt = self . cleaned_data [ 'amount' ] #NEWLINE# max_amount = self . account . balance #NEWLINE# if ( amt > max_amount ) : #NEWLINE# #INDENT# raise forms . ValidationError ( ( _ ( 'The account has only %s' ) % currency ( max_amount ) ) ) #NEWLINE# #UNINDENT# return amt