mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
magic-removal: Changed delete() safety-mechanism logic to happen as soon as possible.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2107 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -213,7 +213,7 @@ AttributeError: Manager isn't accessible via Article instances
|
||||
>>> Article.objects.delete()
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
TypeError: SAFTEY MECHANISM: Specify DELETE_ALL=True if you actually want to delete all data
|
||||
TypeError: SAFETY MECHANISM: Specify DELETE_ALL=True if you actually want to delete all data.
|
||||
|
||||
>>> Article.objects.delete(DELETE_ALL=True)
|
||||
>>> Article.objects.get_count()
|
||||
|
||||
Reference in New Issue
Block a user