Skip to content

Coach.MultipleObjectsReturned: get() returned more than one Coach -- it returned 7! #1075

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sentry-io bot opened this issue Jun 5, 2025 · 0 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Jun 5, 2025

Sentry Issue: DJANGO-GIRLS-WEBSITE-82

Coach.MultipleObjectsReturned: get() returned more than one Coach -- it returned 7!
(8 additional frame(s) were not displayed)
...
  File "django/utils/decorators.py", line 130, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "django/contrib/admin/options.py", line 1540, in changeform_view
    return self._changeform_view(request, object_id, form_url, extra_context)
  File "django/contrib/admin/options.py", line 1561, in _changeform_view
    obj = self.get_object(request, unquote(object_id), to_field)
  File "django/contrib/admin/options.py", line 763, in get_object
    return queryset.get(**{field.name: object_id})
  File "django/db/models/query.py", line 439, in get
    raise self.model.MultipleObjectsReturned(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants