ojengwa / pleft

Automatically exported from code.google.com/p/pleft
GNU General Public License v3.0
1 stars 0 forks source link

Duplicate Invitee object #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by sander.d...@gmail.com on 9 Mar 2011 at 11:57

GoogleCodeExporter commented 9 years ago
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>}

Original comment by sander.d...@gmail.com on 9 Mar 2011 at 11:58

GoogleCodeExporter commented 9 years ago
Issue 57 has been merged into this issue.

Original comment by sander.d...@gmail.com on 27 Nov 2011 at 4:07

GoogleCodeExporter commented 9 years ago
https://github.com/sander/pleft/issues/19

Original comment by sander.d...@gmail.com on 24 Dec 2011 at 9:54