Are the following two equivalent SQL query calls allowed in Django?
Connect multiple calls
Model.objects \ .filter(arg1=foo) \ .filter(arg2=bar) \ ...
Combining all args together:
Model.objects \ .filter(arg1=foo, arg2=bar)
I would like the code to be readable (there are many filter calls than I showed), but only if there is no performance sacrifice.
django django-models django-orm
thebossman Sep 17 '10 at 7:11 2010-09-17 07:11
source share