Re: bulk delete question

2006-07-20 Thread Le Roux Bodenstein
That's what I want (and basically what I'm doing now), but I just feel like it is quite dangerous having that there and not easy to override. If someone else works on my code I have to know tell them not to call the bulk delete or "bad things might happen". There's no way of "making it idiot proof

Re: bulk delete question

2006-07-19 Thread Russell Keith-Magee
On 7/19/06, Le Roux <[EMAIL PROTECTED]> wrote: If I do something like MyModel.objects.filter(id__in=[1, 2,3]).delete(), it doesn't look like the Model instances'  delete()method will get called. I have some uploaded files that have acorresponding File model that stores metadata related to files. I

bulk delete question

2006-07-19 Thread Le Roux
Hi If I do something like MyModel.objects.filter(id__in=[1, 2, 3]).delete(), it doesn't look like the Model instances' delete() method will get called. I have some uploaded files that have a corresponding File model that stores metadata related to files. I was considering overriding the delete()