From 06a448561632255553db4d0e75d5d3350117ab7a Mon Sep 17 00:00:00 2001 From: Jonathan Weth <git@jonathanweth.de> Date: Wed, 25 Mar 2020 14:22:00 +0100 Subject: [PATCH] Fix time_max --- aleksis/apps/chronos/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aleksis/apps/chronos/models.py b/aleksis/apps/chronos/models.py index 55c5f7c4..94fd844c 100644 --- a/aleksis/apps/chronos/models.py +++ b/aleksis/apps/chronos/models.py @@ -362,7 +362,7 @@ class TimePeriod(models.Model): @classproperty def time_max(cls) -> Optional[time]: - return cls.objects.aggregate(Max("time_start")).get("time_start__max") + return cls.objects.aggregate(Max("time_end")).get("time_end__max") @classproperty def weekday_min(cls) -> int: -- GitLab