#NEWLINE# def clean( self ) : #NEWLINE# #INDENT# num_words = len ( self . text . split ( ) ) #NEWLINE# if ( self . max_words and ( num_words > self . max_words ) ) : #NEWLINE# #INDENT# raise ValidationError ( ( _ ( 'Sponsorship level only allows for %(word)s words, you provided %(num)d.' ) % { #NEWLINE# #INDENT# 'word' : num_words . max_words , #NEWLINE# 'num' : num_words , #NEWLINE# #UNINDENT# } ) )