Ticket #5423: 5423.diff

File 5423.diff, 798 bytes (added by Russell Keith-Magee, 17 years ago)

Possible fix for problem

  • django/core/management/commands/dumpdata.py

     
    11from django.core.management.base import BaseCommand, CommandError
    22
     3import sys
    34from optparse import make_option
    45
    56class Command(BaseCommand):
     
    3637            for model in get_models(app):
    3738                objects.extend(model.objects.all())
    3839        try:
    39             return serializers.serialize(format, objects, indent=indent)
     40            serializers.serialize(format, objects, indent=indent, stream=sys.stdout)
    4041        except Exception, e:
    4142            raise CommandError("Unable to serialize database: %s" % e)
Back to Top