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 <[email protected]> wrote: > On 12 Sty, 15:40, John Baker <[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

