Modifying the query on django rest framework

I’ve been messing about with filters on my listing (REST get) for my django backend. One problem I had is to show or list out only a certain entry based on a boolean value. I didn’t want to load all the spam and filter it, that would be useless… So I tinkered around and I…