#NEWLINE# def as_sql( self , qn , connection ) : #NEWLINE# #INDENT# 'Return appropriate SQL for an array contains lookup\n        in PostgreSQL.\n        ' #NEWLINE# field = qn . compile ( self . lhs ) [ 0 ] #NEWLINE# value = self . rhs #NEWLINE# db_type = self . field . db_type ( connection ) #NEWLINE# return ( '{0} = %s::{1}' . format ( field , qn ) , ( value , ) )