Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/usr/local/lib/python3.9/dist-packages/django/core/handlers/base.py", line 204, in _get_response
response = response.render()
File "/usr/local/lib/python3.9/dist-packages/django/template/response.py", line 105, in render
self.content = self.rendered_content
File "/usr/local/lib/python3.9/dist-packages/sentry_sdk/integrations/django/templates.py", line 73, in rendered_content
return real_rendered_content.fget(self)
File "/usr/local/lib/python3.9/dist-packages/django/template/response.py", line 83, in rendered_content
return template.render(context, self._request)
File "/usr/local/lib/python3.9/dist-packages/django/template/backends/django.py", line 61, in render
return self.template.render(context)
File "/usr/local/lib/python3.9/dist-packages/django/template/base.py", line 168, in render
with context.bind_template(self):
File "/usr/lib/python3.9/contextlib.py", line 117, in __enter__
return next(self.gen)
File "/usr/local/lib/python3.9/dist-packages/debug_toolbar/panels/templates/panel.py", line 46, in _request_context_bind_template
context = processor(self.request)
File "/usr/local/lib/python3.9/dist-packages/aleksis/core/util/core_helpers.py", line 214, in custom_information_processor
"FOOTER_MENU": CustomMenu.get_default("footer"),
File "/usr/local/lib/python3.9/dist-packages/cache_memoize/__init__.py", line 137, in inner
result = func(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/aleksis/core/models.py", line 1007, in get_default
menu, _ = cls.objects.prefetch_related("items").get_or_create(name=name)
File "/usr/local/lib/python3.9/dist-packages/django/db/models/query.py", line 588, in get_or_create
return self.create(**params), True
File "/usr/local/lib/python3.9/dist-packages/django/db/models/query.py", line 453, in create
obj.save(force_insert=True, using=self.db)
File "/usr/local/lib/python3.9/dist-packages/aleksis/core/mixins.py", line 368, in save
super().save(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/django/db/models/base.py", line 739, in save
self.save_base(using=using, force_insert=force_insert,
File "/usr/local/lib/python3.9/dist-packages/django/db/models/base.py", line 776, in save_base
updated = self._save_table(
File "/usr/local/lib/python3.9/dist-packages/django/db/models/base.py", line 881, in _save_table
results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw)
File "/usr/local/lib/python3.9/dist-packages/django/db/models/base.py", line 919, in _do_insert
return manager._insert(
File "/usr/local/lib/python3.9/dist-packages/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/django/db/models/query.py", line 1270, in _insert
return query.get_compiler(using=using).execute_sql(returning_fields)
File "/usr/local/lib/python3.9/dist-packages/cachalot/monkey_patch.py", line 29, in inner
return original(compiler, *args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/cachalot/monkey_patch.py", line 105, in inner
return original(write_compiler, *args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/django/db/models/sql/compiler.py", line 1416, in execute_sql
cursor.execute(sql, params)
File "/usr/local/lib/python3.9/dist-packages/cachalot/monkey_patch.py", line 129, in inner
return original(cursor, sql, *args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/sentry_sdk/integrations/django/__init__.py", line 545, in execute
return real_execute(self, sql, params)
File "/usr/local/lib/python3.9/dist-packages/django/db/backends/utils.py", line 66, in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
File "/usr/local/lib/python3.9/dist-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/usr/local/lib/python3.9/dist-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python3.9/dist-packages/django/db/utils.py", line 90, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/usr/local/lib/python3.9/dist-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python3.9/dist-packages/django_prometheus/db/common.py", line 71, in execute
return super().execute(*args, **kwargs)
django.db.utils.IntegrityError: duplicate key value violates unique constraint "unique_menu_name_per_site"
DETAIL: Key (site_id, name)=(1, footer) already exists.