Ticket #6155: 6155-2.diff
File 6155-2.diff, 1.1 KB (added by , 17 years ago) |
---|
-
django/core/management/commands/dumpdata.py
34 34 objects = [] 35 35 for app in app_list: 36 36 for model in get_models(app): 37 objects.extend(model. objects.all())37 objects.extend(model._default_manager.all()) 38 38 try: 39 39 return serializers.serialize(format, objects, indent=indent) 40 40 except Exception, e: -
docs/django-admin.txt
132 132 133 133 The output of ``dumpdata`` can be used as input for ``loaddata``. 134 134 135 Note that if your application model is using a `Custom Manager`_, and that 136 custom manager is the default manager for the model, then the custom manager 137 will be used in outputting the data for your model. 138 139 .. _Custom Manager: ../model-api/#custom-managers 140 135 141 --format 136 142 ~~~~~~~~ 137 143