Calling update() on EmptyQuerySet updates all rows in database

2009-11-03 Thread Jens Ådne Rydland
Came across an issue with EmptyQuerySet today, it seems it does not behave correctly with regard to update(). (or that the documentation is lacking, I suspect it's the former) Assuming I have a model Foo of which I have say 42 stored instances in the database, each with a CharacterField "bar". I

Re: Calling update() on EmptyQuerySet updates all rows in database

2009-11-03 Thread Jacob Kaplan-Moss
On Tue, Nov 3, 2009 at 7:42 AM, Jens Ådne Rydland wrote: > This seems to be caused by EmptyQuerySet not overriding update(), > shouldn't this just return 0? Yup, that's a bug. Can you please open a ticket so that we don't forget this? Jacob --~--~-~--~~~---~--~~