#NEWLINE# def clean_email( self ) : #NEWLINE# #INDENT# value = self . cleaned_data [ 'email' ] #NEWLINE# try : #NEWLINE# #INDENT# entry = WaitingListEntry . objects . get ( email = value ) #NEWLINE# #UNINDENT# except WaitingListEntry . DoesNotExist : #NEWLINE# #INDENT# return self #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise forms . ValidationError ( ( 'The email address %(email)s already registered on %(date)s.' % { #NEWLINE# #INDENT# 'email' : value , #NEWLINE# 'date' : entry . created . strftime ( '%m/%d/%y' ) , #NEWLINE# #UNINDENT# } ) )