2👍
✅
You cannot use a model function in Django filtering. You should use DateTimeField to store event_date and event_time in one attribute. Then, in your ListView, override the ‘get_queryset’ function like so:
def get_queryset(self):
return Event.objects.filter(event_datetime__gte=datetime.now())
Source:stackexchange.com