← Back to team overview

ubuntu-bengali-manual team mailing list archive

[Bug 991592] [NEW] MultipleObjectsReturned: get() returned more than one Team -- it returned 2! Lookup parameters were {'lp_name': u'ubuntu-ne'}

 

Public bug reported:

Traceback (most recent call last):

 File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line 92, in get_response
   response = callback(request, *callback_args, **callback_kwargs)

 File "/srv/loco.ubuntu.com/loco_directory/teams/views.py", line 163, in team_detail
   team_object = get_object_or_404(Team, lp_name=team_slug)

 File "/usr/lib/pymodules/python2.6/django/shortcuts/__init__.py", line 85, in get_object_or_404
   return queryset.get(*args, **kwargs)

 File "/usr/lib/pymodules/python2.6/django/db/models/query.py", line 307, in get
   % (self.model._meta.object_name, num, kwargs))

MultipleObjectsReturned: get() returned more than one Team -- it
returned 2! Lookup parameters were {'lp_name': u'ubuntu-ne'}

** Affects: loco-team-portal
     Importance: Medium
         Status: New

** Changed in: loco-team-portal
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bengali Manual, which is subscribed to LoCo Team Portal.
https://bugs.launchpad.net/bugs/991592

Title:
  MultipleObjectsReturned: get() returned more than one Team -- it
  returned 2! Lookup parameters were {'lp_name': u'ubuntu-ne'}

Status in LoCo Team Portal:
  New

Bug description:
  Traceback (most recent call last):

   File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line 92, in get_response
     response = callback(request, *callback_args, **callback_kwargs)

   File "/srv/loco.ubuntu.com/loco_directory/teams/views.py", line 163, in team_detail
     team_object = get_object_or_404(Team, lp_name=team_slug)

   File "/usr/lib/pymodules/python2.6/django/shortcuts/__init__.py", line 85, in get_object_or_404
     return queryset.get(*args, **kwargs)

   File "/usr/lib/pymodules/python2.6/django/db/models/query.py", line 307, in get
     % (self.model._meta.object_name, num, kwargs))

  MultipleObjectsReturned: get() returned more than one Team -- it
  returned 2! Lookup parameters were {'lp_name': u'ubuntu-ne'}

To manage notifications about this bug go to:
https://bugs.launchpad.net/loco-team-portal/+bug/991592/+subscriptions


Follow ups

References