I am working with a query that looks like this:
filters = Q(is_default = False) # Build the excludes and filters dynamically if cut: filters = filters & Q(mailbagstats__num_letters2__gt = int(cut) )
Given the filters Q query, can I pop execute one of the queries?
I want to remove the Q(mailbagstats__num_letters2__gt= int(cut) ) query Q(mailbagstats__num_letters2__gt= int(cut) ) from this Q query for a new filter by line.
I usually use lists and reduce , but this method is created via Q() & Q() , so I'm not sure how to change it.
Thanks for any input you have.
source share