Changeset 6932
- Timestamp:
- 12/17/07 03:09:08 (1 year ago)
- Files:
-
- django/trunk/django/core/management/commands/dumpdata.py (modified) (1 diff)
- django/trunk/docs/django-admin.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/management/commands/dumpdata.py
r6922 r6932 39 39 for app in app_list: 40 40 for model in get_models(app): 41 objects.extend(model. objects.all())41 objects.extend(model._default_manager.all()) 42 42 try: 43 43 return serializers.serialize(format, objects, indent=indent) django/trunk/docs/django-admin.txt
r6747 r6932 132 132 133 133 The output of ``dumpdata`` can be used as input for ``loaddata``. 134 135 Note that ``dumpdata`` uses the default manager on the mdoel for selecting the 136 records to dump. If you're using a `custom manager`_ as the default manager 137 and it filters some of the available records, not all of the objects will be 138 dumped. 139 140 .. _custom manager: ../model-api/#custom-managers 134 141 135 142 --format
