pleft
pleft copied to clipboard
Duplicate Invitee object
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>}