2023-12-09 12:08:27,002 ERROR django.request[14708]: Internal Server Error: /graphql/Traceback (most recent call last): File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/dynamic_preferences/managers.py", line 155, in get_db_pref pref = self.queryset.get(section=section, name=name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/db/models/query.py", line 637, in get raise self.model.DoesNotExist(aleksis.core.models.PersonPreferenceModel.DoesNotExist: PersonPreferenceModel matching query does not exist.During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/db/models/query.py", line 916, in get_or_create return self.get(**kwargs), False ^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/db/models/query.py", line 637, in get raise self.model.DoesNotExist(aleksis.core.models.PersonPreferenceModel.DoesNotExist: PersonPreferenceModel matching query does not exist.During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner response = get_response(request) ^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/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/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/views/decorators/csrf.py", line 56, in wrapper_view return view_func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/views/generic/base.py", line 104, in view return self.dispatch(request, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/utils/decorators.py", line 46, in _wrapper return bound_method(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/utils/decorators.py", line 134, in _wrapper_view response = view_func(request, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/graphene_django/views.py", line 178, in dispatch responses = [self.get_response(request, entry) for entry in data] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/graphene_django/views.py", line 178, in <listcomp> responses = [self.get_response(request, entry) for entry in data] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/graphene_django/views.py", line 205, in get_response execution_result = self.execute_graphql_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/AlekSIS/AlekSIS/apps/official/AlekSIS-Core/aleksis/core/views.py", line 1539, in execute_graphql_request raise error File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/graphql/execution/execute.py", line 540, in execute_field completed = self.complete_value( ^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/graphql/execution/execute.py", line 607, in complete_value raise result File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/graphene_django/debug/middleware.py", line 65, in resolve result = next(root, info, **args) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/AlekSIS/AlekSIS/apps/official/AlekSIS-Core/aleksis/core/schema/calendar.py", line 96, in resolve_activated return root.get_activated(info.context.user.person) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/AlekSIS/AlekSIS/apps/official/AlekSIS-Core/aleksis/core/mixins.py", line 801, in get_activated return cls.name in person.preferences["calendar__activated_calendars"] ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/dynamic_preferences/managers.py", line 34, in __getitem__ return self.get(key) ^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/dynamic_preferences/managers.py", line 149, in get db_pref = self.get_db_pref(section=section, name=name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/dynamic_preferences/managers.py", line 158, in get_db_pref pref = self.create_db_pref( ^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/dynamic_preferences/managers.py", line 196, in create_db_pref db_pref, created = self.model.objects.get_or_create(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/db/models/manager.py", line 87, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/db/models/query.py", line 923, in get_or_create return self.create(**params), True ^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/db/models/query.py", line 658, in create obj.save(force_insert=True, using=self.db) File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/dynamic_preferences/models.py", line 77, in save super(BasePreferenceModel, self).save(**kwargs) File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/db/models/base.py", line 778, in save self._prepare_related_fields_for_save(operation_name="save") File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/db/models/base.py", line 1093, in _prepare_related_fields_for_save raise ValueError(graphql.error.graphql_error.GraphQLError: save() prohibited to prevent data loss due to unsaved related object 'instance'.GraphQL request:10:7 9 | color10 | activated | ^11 | __typename2023-12-09 12:08:27,002 ERROR django.request[14708]: Internal Server Error: /graphql/Traceback (most recent call last): File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/dynamic_preferences/managers.py", line 155, in get_db_pref pref = self.queryset.get(section=section, name=name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/db/models/query.py", line 637, in get raise self.model.DoesNotExist(aleksis.core.models.PersonPreferenceModel.DoesNotExist: PersonPreferenceModel matching query does not exist.During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/db/models/query.py", line 916, in get_or_create return self.get(**kwargs), False ^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/db/models/query.py", line 637, in get raise self.model.DoesNotExist(aleksis.core.models.PersonPreferenceModel.DoesNotExist: PersonPreferenceModel matching query does not exist.During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner response = get_response(request) ^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/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/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/views/decorators/csrf.py", line 56, in wrapper_view return view_func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/views/generic/base.py", line 104, in view return self.dispatch(request, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/utils/decorators.py", line 46, in _wrapper return bound_method(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/utils/decorators.py", line 134, in _wrapper_view response = view_func(request, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/graphene_django/views.py", line 178, in dispatch responses = [self.get_response(request, entry) for entry in data] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/graphene_django/views.py", line 178, in <listcomp> responses = [self.get_response(request, entry) for entry in data] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/graphene_django/views.py", line 205, in get_response execution_result = self.execute_graphql_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/AlekSIS/AlekSIS/apps/official/AlekSIS-Core/aleksis/core/views.py", line 1539, in execute_graphql_request raise error File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/graphql/execution/execute.py", line 540, in execute_field completed = self.complete_value( ^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/graphql/execution/execute.py", line 607, in complete_value raise result File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/graphene_django/debug/middleware.py", line 65, in resolve result = next(root, info, **args) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/AlekSIS/AlekSIS/apps/official/AlekSIS-Core/aleksis/core/schema/calendar.py", line 96, in resolve_activated return root.get_activated(info.context.user.person) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/AlekSIS/AlekSIS/apps/official/AlekSIS-Core/aleksis/core/mixins.py", line 801, in get_activated return cls.name in person.preferences["calendar__activated_calendars"] ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/dynamic_preferences/managers.py", line 34, in __getitem__ return self.get(key) ^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/dynamic_preferences/managers.py", line 149, in get db_pref = self.get_db_pref(section=section, name=name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/dynamic_preferences/managers.py", line 158, in get_db_pref pref = self.create_db_pref( ^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/dynamic_preferences/managers.py", line 196, in create_db_pref db_pref, created = self.model.objects.get_or_create(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/db/models/manager.py", line 87, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/db/models/query.py", line 923, in get_or_create return self.create(**params), True ^^^^^^^^^^^^^^^^^^^^^ File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/db/models/query.py", line 658, in create obj.save(force_insert=True, using=self.db) File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/dynamic_preferences/models.py", line 77, in save super(BasePreferenceModel, self).save(**kwargs) File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/db/models/base.py", line 778, in save self._prepare_related_fields_for_save(operation_name="save") File "/home/nik/.cache/pypoetry/virtualenvs/aleksis-core-rYwtuYiE-py3.11/lib/python3.11/site-packages/django/db/models/base.py", line 1093, in _prepare_related_fields_for_save raise ValueError(graphql.error.graphql_error.GraphQLError: save() prohibited to prevent data loss due to unsaved related object 'instance'.GraphQL request:10:7 9 | color10 | activated | ^11 | __typenamefilters={}
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related.
Learn more.