in django docs I found this solution for filtering multiple time the same query in many lines:
q1 = Entry.objects.filter(headline__startswith="What") q2