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

EventPageContent.MultipleObjectsReturned: Detected non-unique values in field '{rank_field}' used for sorting this model. #877

Open
sentry-io bot opened this issue Mar 29, 2023 · 0 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Mar 29, 2023

Sentry Issue: DJANGO-GIRLS-WEBSITE-57

EventPageContent.MultipleObjectsReturned: get() returned more than one EventPageContent -- it returned more than 20!
  File "adminsortable2/admin.py", line 322, in move_item
    obj = model.objects.get(**obj_filters)
  File "django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "django/db/models/query.py", line 439, in get
    raise self.model.MultipleObjectsReturned(

EventPageContent.MultipleObjectsReturned: Detected non-unique values in field '{rank_field}' used for sorting this model.
Consider to run 
    python manage.py reorder {model._meta.label}
to adjust this inconsistency.
(3 additional frame(s) were not displayed)
...
  File "django/views/decorators/cache.py", line 44, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "django/contrib/admin/sites.py", line 232, in inner
    return view(request, *args, **kwargs)
  File "adminsortable2/admin.py", line 256, in update_order
    moved_items = list(self._move_item(request, startorder, endorder))
  File "adminsortable2/admin.py", line 292, in _move_item
    return self.move_item(startorder, endorder, extra_model_filters)
  File "adminsortable2/admin.py", line 326, in move_item
    raise 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