Django queryset stops working after multiple uses and filters
I am currently working on a task which requires me to divide my model data into multiple parts based on conditions and then process them differently. I am able to get data from my model correctly and check all available details that they exists. But after applying certain number of filters, suddenly the queryset stops working and don’t give the correct results. I don’t know why this is happening, can someone explain? Here is part of my code that is causing issue: