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

Fix objectgetter_optional syntax

parent 07188bfa
No related branches found
No related tags found
1 merge request!80Resolve "Add student view with further information"
......@@ -456,7 +456,7 @@ def full_register_group(request: HttpRequest, id_: int) -> HttpResponse:
def overview_person(request: HttpRequest, id_: Optional[int] = None) -> HttpResponse:
context = {}
person = objectgetter_optional(Person, default_eval="request.user.person")(
person = objectgetter_optional(Person, default="request.user.person", default_eval=True)(
request, id_
)
context["person"] = 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