Skip to content
Snippets Groups Projects
Verified Commit 06a44856 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Fix time_max

parent 30e640c9
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment