#NEWLINE# def clean( self , value ) : #NEWLINE# #INDENT# expiry_date = super ( ExpiryDateField , self ) . clean ( value ) #NEWLINE# if ( date . today ( ) > expiry_date ) : #NEWLINE# #INDENT# raise forms . ValidationError ( self . error_messages [ 'date_passed' ] ) #NEWLINE# #UNINDENT# return expiry_date