Skip to content
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

Coach.MultipleObjectsReturned: get() returned more than one Coach -- it returned 4! #956

Open
sentry-io bot opened this issue Mar 13, 2024 · 1 comment

Comments

@sentry-io
Copy link

sentry-io bot commented Mar 13, 2024

Sentry Issue: DJANGO-GIRLS-WEBSITE-3H

Coach.MultipleObjectsReturned: get() returned more than one Coach -- it returned 4!
(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(
@vanessa
Copy link
Contributor

vanessa commented Apr 30, 2024

For context:

3OWDtr2i

It doesn't seem to be something with app code. We seem to have 2 instances with the same PK?

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

1 participant