summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2010-01-10 17:53:19 +0000
committerAdrian Holovaty <adrian@holovaty.com>2010-01-10 17:53:19 +0000
commitcf1b6845d4cc1c34cfa975f6ba98b7fb966cb491 (patch)
tree4eb5b119cec9f7adc485bccafc78981545e9fa33 /tests
parent0683a79d0c5582d9c7f4aa424713adbfba37bfac (diff)
Fixed #12142 -- EmptyQuerySet.update() no longer updates all rows in the database
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12171 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
-rw-r--r--tests/modeltests/lookup/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/modeltests/lookup/models.py b/tests/modeltests/lookup/models.py
index 512ffd7e7d..72b547a376 100644
--- a/tests/modeltests/lookup/models.py
+++ b/tests/modeltests/lookup/models.py
@@ -295,6 +295,8 @@ DoesNotExist: Article matching query does not exist.
[]
>>> Article.objects.none().count()
0
+>>> Article.objects.none().update(headline="This should not take effect")
+0
>>> [article for article in Article.objects.none().iterator()]
[]