Ticket #6155: 6155-2.diff

File 6155-2.diff, 1.1 KB (added by empty, 17 years ago)

Added documentation patch

  • 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:
  • docs/django-admin.txt

     
    132132
    133133The output of ``dumpdata`` can be used as input for ``loaddata``.
    134134
     135Note that if your application model is using a `Custom Manager`_, and that
     136custom manager is the default manager for the model, then the custom manager
     137will be used in outputting the data for your model.
     138
     139.. _Custom Manager: ../model-api/#custom-managers
     140
    135141--format
    136142~~~~~~~~
    137143
Back to Top