From 4949653b57d935522832b01addd80ef0e992cb98 Mon Sep 17 00:00:00 2001 From: Joseph Riddle Date: Sat, 6 Apr 2024 14:41:35 -0700 Subject: [PATCH] Order events by date_time --- src/web/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/views.py b/src/web/views.py index 9978ea91..b8e49876 100644 --- a/src/web/views.py +++ b/src/web/views.py @@ -44,7 +44,7 @@ class ListEvents(HandyHelperListView): table = "web/partials/table/table_events.htm" def __init__(self, **kwargs: Any) -> None: - self.queryset = Event.objects.filter(date_time__gte=timezone.now()) + self.queryset = Event.objects.filter(date_time__gte=timezone.now()).order_by("date_time") super().__init__(**kwargs)