contrib.contenttypes.generic importing from contrib.admin causing trouble

2012-11-05 Thread Jens Ådne Rydland
haven't really tested if it breaks anything else. And I guess this could be considered a too obscure corner case to care about, but would appreciate some feedback anyway. -- Jens Ådne Rydland -- You received this message because you are subscribed to the Google Groups "Django developers

Calling update() on EmptyQuerySet updates all rows in database

2009-11-03 Thread Jens Ådne Rydland
"bar". If I do Foo.objects.none().count() I get the expected result 0. However, Foo.objects.none().update(bar='baz') returns 42, and all 42 rows in the database have been updated. This seems to be caused by EmptyQuerySet not overriding update(), shouldn't this just return 0