Skip to content
Snippets Groups Projects
Commit 66d10d95 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch '191-events-show-data-missing-although-all-data-are-complete' into 'master'

Resolve "Events show "data missing" although all data are complete"

Closes #191

See merge request !234
parents 94f525d9 43fd0254
No related branches found
No related tags found
1 merge request!234Resolve "Events show "data missing" although all data are complete"
Pipeline #36409 failed
......@@ -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