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

Merge branch 'master' into 189-improve-design-of-detail-view-for-one-register-object

parents ed31cbff 66d10d95
No related branches found
No related tags found
1 merge request!235Resolve "Improve design of detail view for one register object"
......@@ -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