Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Duplicate Invitee object #19

Open
sander opened this issue Dec 24, 2011 · 0 comments
Open

Duplicate Invitee object #19

sander opened this issue Dec 24, 2011 · 0 comments
Labels

Comments

@sander
Copy link
Owner

sander commented Dec 24, 2011

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>}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant