Ticket #6155: 6155-1.diff

File 6155-1.diff, 592 bytes (added by empty, 17 years ago)

Patches the dumpdata command

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

     
    3434        objects = []
    3535        for app in app_list:
    3636            for model in get_models(app):
    37                 objects.extend(model.objects.all())
     37                objects.extend(model._default_manager.all())
    3838        try:
    3939            return serializers.serialize(format, objects, indent=indent)
    4040        except Exception, e:
Back to Top