#NEWLINE# def clean_email( self ) : #NEWLINE# #INDENT# '\n        Check the supplied email address against a list of known free\n        webmail domains.\n        \n        ' #NEWLINE# email_domain = self . cleaned_data [ 'email' ] . split ( '@' ) [ 1 ] #NEWLINE# if ( email_domain in email_domain . bad_domains ) : #NEWLINE# #INDENT# raise forms . ValidationError ( _ ( 'Registration using free email addresses is prohibited. Please supply a different email address.' ) ) #NEWLINE# #UNINDENT# return self . cleaned_data [ 'email' ]