I am chaining nodes to a Q object the following way:
q = Q()
for filter in filters:
if filter_applies(filter):
q.add(Q(some_criteria), Q.OR)
What means the q object might or might not have been chained a node. Later on I am trying to apply the q object in a filter, but only if this is not empty:
if q.not_empty():
some_query_set.filter(q)
How can I check that q is not the same than it was when defined?