I have one sql query:
select * from sample_table where (istatus = 1 AND ((iCategory = 2 and iType=1) or (iType in (2,3,5)));
How can I write the same in Django ORM using filter?
I have one sql query:
select * from sample_table where (istatus = 1 AND ((iCategory = 2 and iType=1) or (iType in (2,3,5)));
How can I write the same in Django ORM using filter?