Skip to content

Commit

Permalink
Order events by date_time
Browse files Browse the repository at this point in the history
  • Loading branch information
joeriddles committed Apr 6, 2024
1 parent 2f69c08 commit 4949653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 4949653

Please sign in to comment.