On Wed, Sep 16, 2009 at 12:28 PM, datakid <[email protected]> wrote:
> > Hi, > I'm debugging a script which causes errors when trying to delete > objects. > Concerned code is: > > Event.objects.filter(created_on__lte=date).delete() > > I have the following result: > > updating resource 36 with state : 4 > > Since you have not shown any code that prints that result, it's a bit hard to know what exactly that is trying to say. > Sometimes it works and returns a code: 3 > > I've checked on > http://docs.djangoproject.com/en/dev/topics/db/queries/#topics-db-queries-delete > to obtain more information on return codes, without success. Where > should I look? > > What, exactly, returns a code 3? The single line of code you show does not save any return code from delete(), which is as well since delete() is not documented to return anything, as you note. Perhaps if you shared more of the code you are using someone might be able to help. Karen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

