2023-08-28 16:49:01,644 ERROR django.request[2496252]: Internal Server Error: /django/app/alsijil/instructions/
Traceback (most recent call last):
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.venv/lib/python3.11/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.venv/lib/python3.11/site-packages/django_prometheus/db/common.py", line 69, in execute
return super().execute(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
psycopg2.errors.UndefinedColumn: FEHLER: Spalte cte.to_group_id existiert nicht
LINE 1: ... ON "core_group_parent_groups"."from_group_id" = ("cte"."to_...
^
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.venv/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
^^^^^^^^^^^^^^^^^^^^^
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.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 "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.venv/lib/python3.11/site-packages/django/views/generic/base.py", line 104, in view
return self.dispatch(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.venv/lib/python3.11/site-packages/django/contrib/auth/mixins.py", line 109, in dispatch
return super().dispatch(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.venv/lib/python3.11/site-packages/django/views/generic/base.py", line 143, in dispatch
return handler(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.venv/lib/python3.11/site-packages/django_filters/views.py", line 85, in get
context = self.get_context_data(filter=self.filterset,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/aleksis/apps/alsijil/views.py", line 1422, in get_context_data
selected_groups = list(parent_groups) + [group]
^^^^^^^^^^^^^^^^^^^
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.venv/lib/python3.11/site-packages/django/db/models/query.py", line 398, in __iter__
self._fetch_all()
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.venv/lib/python3.11/site-packages/django/db/models/query.py", line 1881, in _fetch_all
self._result_cache = list(self._iterable_class(self))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.venv/lib/python3.11/site-packages/django/db/models/query.py", line 91, in __iter__
results = compiler.execute_sql(
^^^^^^^^^^^^^^^^^^^^^
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.venv/lib/python3.11/site-packages/cachalot/monkey_patch.py", line 37, in inner
return original(compiler, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.venv/lib/python3.11/site-packages/cachalot/monkey_patch.py", line 96, in inner
return _get_result_or_execute_query(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.venv/lib/python3.11/site-packages/cachalot/monkey_patch.py", line 64, in _get_result_or_execute_query
result = execute_query_func()
^^^^^^^^^^^^^^^^^^^^
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.venv/lib/python3.11/site-packages/cachalot/monkey_patch.py", line 80, in <lambda>
execute_query_func = lambda: original(compiler, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.venv/lib/python3.11/site-packages/django/db/models/sql/compiler.py", line 1562, in execute_sql
cursor.execute(sql, params)
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.venv/lib/python3.11/site-packages/graphene_django/debug/sql/tracking.py", line 153, in execute
return self._record(self.cursor.execute, sql, params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.venv/lib/python3.11/site-packages/graphene_django/debug/sql/tracking.py", line 99, in _record
return method(sql, params)
^^^^^^^^^^^^^^^^^^^
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.venv/lib/python3.11/site-packages/django/db/backends/utils.py", line 102, in execute
return super().execute(sql, params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.venv/lib/python3.11/site-packages/cachalot/monkey_patch.py", line 137, in inner
return original(cursor, sql, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.venv/lib/python3.11/site-packages/django/db/backends/utils.py", line 67, in execute
return self._execute_with_wrappers(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.venv/lib/python3.11/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
return executor(sql, params, many, context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.venv/lib/python3.11/site-packages/django/db/backends/utils.py", line 84, in _execute
with self.db.wrap_database_errors:
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.venv/lib/python3.11/site-packages/django/db/utils.py", line 91, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.venv/lib/python3.11/site-packages/django/db/backends/utils.py", line 89, in _execute
return self.cursor.execute(sql, params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wethjo/dev/AlekSIS/apps/official/AlekSIS-App-Alsijil/.venv/lib/python3.11/site-packages/django_prometheus/db/common.py", line 69, in execute
return super().execute(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
django.db.utils.ProgrammingError: FEHLER: Spalte cte.to_group_id existiert nicht
LINE 1: ... ON "core_group_parent_groups"."from_group_id" = ("cte"."to_...
``