pleft icon indicating copy to clipboard operation
pleft copied to clipboard

Duplicate Invitee object

Open sander opened this issue 13 years ago • 0 comments

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': <Date: Date object>, 'invitee': <Invitee: Invitee object>}

sander avatar Dec 24 '11 21:12 sander