$hits = Ticket::objects()
->values('userdefault_emailaddress', 'cdatasubject', 'username', 'ticket_id', 'threadid', 'flags', 'number','transaction_id')
->annotate(array(
'tickets' => new SqlCode('1'),
'tasks' => SqlAggregate::COUNT('tasksid', true),
'collaborators' => SqlAggregate::COUNT('threadcollaboratorsid', true),
'entries' => SqlAggregate::COUNT('threadentriesid', true),
))
->filter($visibility)
->filter(array('numberstartswith' => $q))
->order_by('number')
->limit($limit);
Hi , In this code need to add another column with OR Condition Filter like this ( ->filter(array('numberstartswith' => $q , array('transaction_id___startswith' => $q ))), please suggest me