1
0
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:
Russell Keith-Magee
2006-01-17 12:06:16 +00:00
parent d9780b7bd5
commit 00f93bc7bb
3 changed files with 39 additions and 9 deletions

View File

@@ -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