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

Show correct status icon for events in week overview

parent 94f525d9
No related branches found
No related tags found
1 merge request!234Resolve "Events show "data missing" although all data are complete"
Pipeline #32863 passed with warnings
......@@ -13,6 +13,7 @@ Fixed
~~~~~
* Translate table columns and filter button on person overview page.
* Show correct status icon for events.
`2.0rc6`_ - 2021-08-25
----------------------
......
......@@ -85,7 +85,8 @@ def annotate_documentations(
instances = instances.annotate(
has_documentation=Exists(
LessonDocumentation.objects.filter(
~Q(topic__exact=""), week=wanted_week.week, year=wanted_week.year,
~Q(topic__exact=""),
Q(week=wanted_week.week, year=wanted_week.year) | Q(week=None, year=None),
).filter(**{klass.label_: OuterRef("pk")})
)
)
......
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