1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Fixed #11428 -- Ensured that SQL generating commands and dumpdata don't include proxy models in their output. Thanks to Anssi Kaariainen for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11343 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee
2009-07-27 14:32:30 +00:00
parent e00150af15
commit 3412860f89
3 changed files with 30 additions and 7 deletions

View File

@@ -73,7 +73,8 @@ class Command(BaseCommand):
model_list = get_models(app)
for model in model_list:
objects.extend(model._default_manager.all())
if not model._meta.proxy:
objects.extend(model._default_manager.all())
try:
return serializers.serialize(format, objects, indent=indent)