Re: Using one query set for another query

2023-04-09 Thread Harsh Vyas
Hi, Need a slight justification on your case what exactly is the use case you need to resolve. So far, I understood you need to know details about unpaid bills, Approach 1:- Model bill_payment_history will have data for field date_paid in case of only paid bills, so you can try to query

Using one query set for another query

2023-03-28 Thread lone...@gmail.com
Hello all, I am trying to use the query of: paid_bills = bill_payment_history.objects.filter(date_paid__year='2023', date_paid__month='03') as criteria for another query to only show the unpaid bills. The known_bills model is my control list of known bills that occur frequently. The