From 79128a885ebe095ad6b439ebb6d8267bd46dcbbf Mon Sep 17 00:00:00 2001
From: Tom Teichler <tom.teichler@teckids.org>
Date: Thu, 30 Jun 2022 17:19:15 +0200
Subject: [PATCH] show all events on manage events page

---
 aleksis/apps/paweljong/menus.py | 2 +-
 aleksis/apps/paweljong/views.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/aleksis/apps/paweljong/menus.py b/aleksis/apps/paweljong/menus.py
index 2d9cc4f..ffcf165 100644
--- a/aleksis/apps/paweljong/menus.py
+++ b/aleksis/apps/paweljong/menus.py
@@ -78,7 +78,7 @@ MENUS = {
                     ],
                 },
                 {
-                    "name": _("Upcoming events"),
+                    "name": _("Events"),
                     "url": "manage_events",
                     "icon": "edit",
                     "validators": [
diff --git a/aleksis/apps/paweljong/views.py b/aleksis/apps/paweljong/views.py
index 96e23ed..d30369f 100644
--- a/aleksis/apps/paweljong/views.py
+++ b/aleksis/apps/paweljong/views.py
@@ -88,7 +88,7 @@ def manage_events(request: HttpRequest) -> HttpResponse:
 
     # Get all registrations
     now = timezone.datetime.today()
-    events = Event.objects.filter(date_event__gte=now)
+    events = Event.objects.all()
 
     # Get filter
     events_filter = EventFilter(request.GET, queryset=events)
-- 
GitLab