﻿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
7298	update() on a sliced query set updates all objects.	Sebastian Noack	nobody	"What do think following code will do?

{{{
model.objects.all()[:1].update(foo='bar')
}}}

No it won't update the first object in the model, it will update all objects. Although I expected that it updates the first object, we should just prevent the user from doing this. Because of (at least MySql) do not support offset for UPDATE. It supports limit but their might be DBMS which do not support both on UPDATE and if you think about this use case, it is a real corner case. But anyway the user should not destroy his data by accident. I have written a patch which adds the same sanity check to QuerySet.update() as already done when calling QuerySet.order_by()."		closed	Database layer (models, ORM)	dev		fixed	qsrf-cleanup	Russell Keith-Magee Malcolm Tredinnick	Unreviewed	1	0	0	0	0	0
