#NEWLINE# def get_db_prep_lookup( self , lookup_type , value , connection = None , prepared = None ) : #NEWLINE# #INDENT# "\n        Returns field's value prepared for database lookup.\n        " #NEWLINE# if ( value . tzinfo is None ) : #NEWLINE# #INDENT# value = default_tz . localize ( value ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# value = value . astimezone ( default_tz ) #NEWLINE# #UNINDENT# return super ( LocalizedDateTimeField , self ) . get_db_prep_lookup ( lookup_type , value , connection = connection , prepared = prepared )