#NEWLINE# def as_postgresql( self , compiler , connection ) : #NEWLINE# #INDENT# ( lhs , lhs_params ) = self . process_lhs ( compiler , connection ) #NEWLINE# if isinstance ( self . rhs , dict ) : #NEWLINE# #INDENT# param = self . rhs #NEWLINE# param_keys = list ( param . keys ( ) ) #NEWLINE# conditions = [ ] #NEWLINE# for key in param_keys : #NEWLINE# #INDENT# op = ( 'IS NULL' if param [ key ] else 'IS NOT NULL' ) #NEWLINE# conditions . append ( ( "(%s->'%s') %s" % ( conditions , key , op ) ) ) #NEWLINE# #UNINDENT# return ( ' AND ' . join ( conditions ) , lhs_params ) #NEWLINE# #UNINDENT# return super ( HStoreIsNull , self ) . as_sql ( compiler , connection )