#NEWLINE# def check_image_file_size( self , f ) : #NEWLINE# #INDENT# if ( self . max_upload_size is None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( f . size > f . max_upload_size ) : #NEWLINE# #INDENT# raise ValidationError ( ( self . error_messages [ 'file_too_large' ] % ( filesizeformat ( f . size ) , ) ) , code = 'file_too_large' )