How can join two django querysets in one?
- by diegueus9
I need order a Queryset by date in desc order, but i need put in the end the objects at the end, I do this:
qs1 = Model.objects.exclude(date=None).order_by('-date')
qs2 = Model.objects.filter(date=None).order_by('-date')
and my list is:
l = list(qs1)+list(qs2)
There is a more efficiently way for this?