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

Merge branch 'fix-participation-status-get-objects' into 'master'

Fix ParticipationStatus.get_objects to deal with changes in Core

See merge request !387
parents bd54ca82 a8f4574a
No related branches found
No related tags found
1 merge request!387Fix ParticipationStatus.get_objects to deal with changes in Core
Pipeline #191853 failed
......@@ -808,9 +808,13 @@ class ParticipationStatus(CalendarEvent):
@classmethod
def get_objects(
cls, request: HttpRequest | None = None, params: dict[str, any] | None = None
cls, request: HttpRequest | None = None, params: dict[str, any] | None = None, **kwargs
) -> QuerySet:
qs = super().get_objects(request, params).select_related("person", "absence_reason")
qs = (
super()
.get_objects(request, params, **kwargs)
.select_related("person", "absence_reason")
)
if params:
if params.get("person"):
qs = qs.filter(person=params["person"])
......
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