Traceback (most recent call last):
File "/srv/aleksis-venv/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
^^^^^^^^^^^^^^^^^^^^^
File "/srv/aleksis-venv/lib/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/aleksis-venv/lib/python3.11/site-packages/django/views/decorators/csrf.py", line 65, in _view_wrapper
return view_func(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/aleksis-venv/lib/python3.11/site-packages/django/views/generic/base.py", line 104, in view
return self.dispatch(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/aleksis-venv/lib/python3.11/site-packages/django/utils/decorators.py", line 48, in _wrapper
return bound_method(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/aleksis-venv/lib/python3.11/site-packages/django/utils/decorators.py", line 188, in _view_wrapper
result = _process_exception(request, e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/aleksis-venv/lib/python3.11/site-packages/django/utils/decorators.py", line 186, in _view_wrapper
response = view_func(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/aleksis-venv/lib/python3.11/site-packages/graphene_django/views.py", line 191, in dispatch
responses = [self.get_response(request, entry) for entry in data]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/aleksis-venv/lib/python3.11/site-packages/graphene_django/views.py", line 191, in <listcomp>
responses = [self.get_response(request, entry) for entry in data]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/aleksis-venv/lib/python3.11/site-packages/graphene_django/views.py", line 218, in get_response
execution_result = self.execute_graphql_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/src/aleksis/apps/official/AlekSIS-Core/aleksis/core/views.py", line 1278, in execute_graphql_request
raise error
File "/srv/aleksis-venv/lib/python3.11/site-packages/graphql/execution/execute.py", line 523, in execute_field
result = resolve_fn(source, info, **args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/src/aleksis/apps/official/AlekSIS-Core/aleksis/core/schema/base.py", line 227, in list_resolver
qs = DjangoListField.list_resolver(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/aleksis-venv/lib/python3.11/site-packages/graphene_django/fields.py", line 56, in list_resolver
queryset = maybe_queryset(resolver(root, info, **args))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/aleksis-venv/lib/python3.11/site-packages/aleksis/apps/kolego/schema/__init__.py", line 58, in resolve_planned_absences_for_person
return graphene_django_optimizer.query(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/aleksis-venv/lib/python3.11/site-packages/graphene_django_optimizer/query.py", line 40, in query
return QueryOptimizer(info, **options).optimize(queryset)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/aleksis-venv/lib/python3.11/site-packages/graphene_django_optimizer/query.py", line 60, in optimize
return store.optimize_queryset(queryset)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/aleksis-venv/lib/python3.11/site-packages/graphene_django_optimizer/query.py", line 400, in optimize_queryset
queryset = queryset.select_related(*self.select_list)
^^^^^^^^^^^^^^^^^^^^^^^
graphql.error.graphql_error.GraphQLError: 'NoneType' object has no attribute 'select_related'
GraphQL request:2:3
1 | query absences($orderBy: [String], $filters: JSONString, $person: ID!) {
2 | items: plannedAbsencesForPerson(
| ^
3 | orderBy: $orderBy