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

2012-11-05 Thread Jens Ådne Rydland
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" group. To post to this group,

Calling update() on EmptyQuerySet updates all rows in database

2009-11-03 Thread Jens Ådne Rydland
t;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? -- best regards,