mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
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
This commit is contained in:
@@ -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()]
|
||||
[]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user