diff --git a/aleksis/apps/chronos/models.py b/aleksis/apps/chronos/models.py index 55c5f7c403f98638832fc99b4c1f75b64354c7b3..94fd844c2c578ec29257ad2cfe0280af9f1ea6b9 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: