summaryrefslogtreecommitdiff
path: root/django/core
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-12-17 09:09:08 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-12-17 09:09:08 +0000
commit3edf2ebd9488bd57ceee9985b3ee7729e8a0f002 (patch)
treeb6fef979b55d54c955027bc2ff67746bd6c9c68b /django/core
parent06482d4aa48d614f872043b6a6475d44cbdf2cb6 (diff)
Fixed #6155 -- Fixed dumpdata to work with the default model manager (necessary
for the rare cases when the 'objects' manager might not even exist). Based on a patch from Michael Trier. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6932 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/core')
-rw-r--r--django/core/management/commands/dumpdata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/management/commands/dumpdata.py b/django/core/management/commands/dumpdata.py
index fdc8fe9293..090053aaf9 100644
--- a/django/core/management/commands/dumpdata.py
+++ b/django/core/management/commands/dumpdata.py
@@ -38,7 +38,7 @@ class Command(BaseCommand):
objects = []
for app in app_list:
for model in get_models(app):
- objects.extend(model.objects.all())
+ objects.extend(model._default_manager.all())
try:
return serializers.serialize(format, objects, indent=indent)
except Exception, e: