[Answered ]-How to chain a queryset together in Django correctly

2👍

You never assign the filter to anything so it doesn’t update it

 queryset = queryset.filter(id=1)

Yes this is the correct way because you are creating a new query, otherwise you need to call the count on the end of the previous filter call

👤Sayse

Leave a comment