Django Union always worked but i got a strange situation where its not work properly.
I have tried to get union of some queryset but got strange result.
I have also check with How can I find the union of two Django querysets? but its not working as well.
Here i have attached image to show my tries.
in the above image i get four queryset( qs, qs1 , qs2, my_qs ) after filter BetDetails model
here i want to get result in my_qs
And when i tried to merge/Union of the queryset got on blank queryset in my_qs While i have data in qs1 .
expected result should be
<QuerySet [<BetDeetails: BetDetails object (29)>]>
But i got :
<QuerySet []>
model:
class BetDetails(DefaultFieldsModel):
name = models.CharField(max_length=20)
type = models.CharField(max_length=20)
status = models.CharField(max_length=10)
I don't know why its showing this type of result. Can anyone please explain and guide me to get desired result.