Traceback (most recent call last):
File "/srv/aleksis/envs/production/lib/python3.7/site-packages/django/db/models/query.py", line 573, in get_or_create
return self.get(**kwargs), False
File "/srv/aleksis/envs/production/lib/python3.7/site-packages/django/db/models/query.py", line 431, in get
self.model._meta.object_name
aleksis.core.models.Group.DoesNotExist: Group matching query does not exist.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/aleksis/envs/production/lib/python3.7/site-packages/celery/app/trace.py", line 405, in trace_task
R = retval = fun(*args, **kwargs)
File "/srv/aleksis/envs/production/lib/python3.7/site-packages/celery/app/trace.py", line 697, in __protected_call__
return self.run(*args, **kwargs)
File "/srv/aleksis/envs/AlekSIS/apps/official/AlekSIS-App-Untis/aleksis/apps/untis/tasks.py", line 37, in untis_import_mysql_current_next_term
_untis_import_mysql(terms)
File "/usr/lib/python3.7/contextlib.py", line 74, in inner
return func(*args, **kwds)
File "/srv/aleksis/envs/AlekSIS/apps/official/AlekSIS-App-Untis/aleksis/apps/untis/util/mysql/main.py", line 57, in untis_import_mysql
validity_range, time_periods_ref, rooms_ref, subjects_ref, teachers_ref, classes_ref,
File "/srv/aleksis/envs/AlekSIS/apps/official/AlekSIS-App-Untis/aleksis/apps/untis/util/mysql/importers/lessons.py", line 147, in import_lessons
short_name=group_short_name, defaults={"name": group_name}
File "/srv/aleksis/envs/production/lib/python3.7/site-packages/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/srv/aleksis/envs/production/lib/python3.7/site-packages/django/db/models/query.py", line 576, in get_or_create
return self._create_object_from_params(kwargs, params)
File "/srv/aleksis/envs/production/lib/python3.7/site-packages/django/db/models/query.py", line 610, in _create_object_from_params
obj = self.create(**params)
File "/srv/aleksis/envs/production/lib/python3.7/site-packages/django/db/models/query.py", line 447, in create
obj.save(force_insert=True, using=self.db)
File "/srv/aleksis/envs/AlekSIS/apps/official/AlekSIS-Core/aleksis/core/models.py", line 444, in save
dirty = bool(self.group_info_tracker.changed())
File "/srv/aleksis/envs/production/lib/python3.7/site-packages/model_utils/tracker.py", line 162, in changed
for field in self.fields
File "/srv/aleksis/envs/production/lib/python3.7/site-packages/model_utils/tracker.py", line 163, in <dictcomp>
if self.has_changed(field)
File "/srv/aleksis/envs/production/lib/python3.7/site-packages/model_utils/tracker.py", line 134, in has_changed
return self.previous(field) != self.get_field_value(field)
File "/srv/aleksis/envs/production/lib/python3.7/site-packages/model_utils/tracker.py", line 100, in get_field_value
return getattr(self.instance, self.field_map[field])
File "/srv/aleksis/envs/production/lib/python3.7/site-packages/model_utils/tracker.py", line 42, in __get__
value = self.descriptor.__get__(instance, owner)
File "/srv/aleksis/envs/production/lib/python3.7/site-packages/django/db/models/fields/related_descriptors.py", line 536, in __get__
return self.related_manager_cls(instance)
File "/srv/aleksis/envs/production/lib/python3.7/site-packages/django/db/models/fields/related_descriptors.py", line 853, in __init__
(instance, self.pk_field_names[self.source_field_name]))
ValueError: "<Group: 8b: Mu (8b-Mu)>" needs to have a value for field "id" before this many-to-many relationship can be used.