mirror of
https://github.com/django/django.git
synced 2025-10-29 00:26:07 +00:00
magic-removal: Fixed #1219 - Added bulk delete for objects.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2029 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -203,6 +203,13 @@ Traceback (most recent call last):
|
||||
...
|
||||
AttributeError: Manager isn't accessible via Article instances
|
||||
|
||||
# Bulk delete test: How many objects before and after the delete?
|
||||
>>> Article.objects.get_count()
|
||||
8L
|
||||
>>> Article.objects.delete(id__lte=4)
|
||||
>>> Article.objects.get_count()
|
||||
4L
|
||||
|
||||
"""
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
Reference in New Issue
Block a user