DjangoGirls / djangogirls

Website for DjangoGirls.org
http://djangogirls.org/
BSD 3-Clause "New" or "Revised" License
460 stars 281 forks source link

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

Open sentry-io[bot] opened 5 months ago

sentry-io[bot] commented 5 months ago

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 commented 4 months ago

For context:

3OWDtr2i

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