interestingly changing candidate = request.candidate (retrieved from middleware) to candidate = Candidate.objects.filter(user=request.user) and then doing .delete() works.
Very strange behaviour. I don't understand the ORM well enough to know why it would get confused. On Jan 12, 2:43 pm, Szymon <szy...@mwg.pl> wrote: > On 12 Sty, 15:40, John Baker <j...@jdiligence.com> wrote: > > > # later in code trying to delete > > candidate.delete() > > > Any clues? (Django 1.0.2 final) > > You need to provide how you fetch objects, I mean code before > cadidate.delete(). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---