def query_for(self, q): return ContactInfo.gql( 'WHERE domain = :1 ORDER BY account_id, filed DESC, __key__', q )
def query_for(self, q): return ContactInfo.gql( 'WHERE account_id = :1 ORDER BY filed DESC, __key__', int(q) )