from django.utils import timezonedjango
from datetime import timedeltaimport
now = timezone.now()object
start = now - timedelta(hours=23,minutes=59,seconds=59)date
DB.objects.filter(column__gt=start)im