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

MultipleObjectsReturned: get() returned more than one Profile -- it returned 2! #386

Closed
mbeacom opened this issue Feb 7, 2018 · 0 comments
Labels
backend This needs backend expertise.

Comments

@mbeacom
Copy link
Contributor

mbeacom commented Feb 7, 2018

View details in Rollbar: https://rollbar.com/mbeacom/gitcoin/items/201/

Traceback (most recent call last):
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/django/core/handlers/base.py", line 126, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/ubuntu/gitcoin/coin/app/dashboard/views.py", line 490, in profile_keywords
    keywords = profile_keywords_helper(handle)
  File "/home/ubuntu/gitcoin/coin/app/dashboard/views.py", line 476, in profile_keywords_helper
    profile = profile_helper(handle)
  File "/home/ubuntu/gitcoin/coin/app/dashboard/views.py", line 464, in profile_helper
    profile = Profile.objects.get(handle__iexact=handle)
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/django/db/models/query.py", line 407, in get
    (self.model._meta.object_name, num)
MultipleObjectsReturned: get() returned more than one Profile -- it returned 2!
@mbeacom mbeacom added backend This needs backend expertise. rollbar labels Feb 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend This needs backend expertise.
Projects
None yet
Development

No branches or pull requests

1 participant