a = Product.objects.order_by('-date_updated').values('id')[:3]
b = Product.objects.filter(new_product__in=NewArrival.objects.all()).values('id')
c = set(a|b)
set((Product.objects.order_by('-date_updated')[:3] | Product.objects.filter(new_product__in=NewArrival.objects.all())).values_list("id", flat=True))