sander/pleft — Issue #19: Duplicate Invitee object
Author: sander
Created: 2011-12-24 21:52:29+00:00
State: open

On March 8, I received two error emails about a duplicate Invitee object being found. It's likely about the same person. I'm not sure who it is yet, but investigation of the database should point that out.

Traceback (most recent call last):

File "/home/sander/tmp/dkp-db/django/core/handlers/base.py", line 100, in get_response
response = callback(request, *callback_args, **callback_kwargs)

File "/home/sander/deploy/pleft/plapp/views.py", line 375, in set_availability
avail = models.Availability.objects.all().get(date=date, invitee=invitee)

File "/home/sander/tmp/dkp-db/django/db/models/query.py", line 343, in get
% (self.model._meta.object_name, num, kwargs))

MultipleObjectsReturned: get() returned more than one Availability -- it returned 2! Lookup parameters were {'date': , 'invitee': }