After lots of search i found my answer
from django.db.models.functions import TruncDate
Product.objects.annotate(day=TruncDate('date')).order_by('-day').distinct('day')
CLICK HERE to find out more related problems solutions.
After lots of search i found my answer
from django.db.models.functions import TruncDate
Product.objects.annotate(day=TruncDate('date')).order_by('-day').distinct('day')
CLICK HERE to find out more related problems solutions.