diff --git a/django/db/models/query.py b/django/db/models/query.py
index 0b57b1e..39c754f 100644
a
|
b
|
class EmptyQuerySet(QuerySet):
|
1001 | 1001 | def count(self): |
1002 | 1002 | return 0 |
1003 | 1003 | |
| 1004 | def update(self, **kwargs): |
| 1005 | return 0 |
| 1006 | |
1004 | 1007 | def delete(self): |
1005 | 1008 | pass |
1006 | 1009 | |
diff --git a/tests/modeltests/lookup/models.py b/tests/modeltests/lookup/models.py
index 512ffd7..6c86dad 100644
a
|
b
|
DoesNotExist: Article matching query does not exist.
|
295 | 295 | [] |
296 | 296 | >>> Article.objects.none().count() |
297 | 297 | 0 |
| 298 | >>> Article.objects.none().update(headline="Don't update me bro") |
| 299 | 0 |
298 | 300 | >>> [article for article in Article.objects.none().iterator()] |
299 | 301 | [] |
300 | 302 | |