Django combine 2 Queryset
Do you know that we can combine 2 Querysets by
>> q1 = q1 | q2 # get another queryset
so you can use .order_by() or something behind
note: don't know about side effect.
>> q1 = q1 | q2 # get another queryset
so you can use .order_by() or something behind
note: don't know about side effect.
Comments
Post a Comment