﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
12142	Calling update() on EmptyQuerySet updates all rows in database	jensadne	nobody	"Assuming a model Foo, with a CharField ""bar"" of which there is for instance 42 stored instances in the database.                                                              
                                                                                                             
Foo.objects.none().count() returns 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(), this method should be overridden to just return 0.                                                                               
"		closed	Database layer (models, ORM)	1.1		fixed	EmptyQuerySet		Ready for checkin	1	0	0	0	0	0
