Skip to content

Commit

Permalink
Fixed #13746: made the dumdata help message a bit clearer. Thanks, Pa…
Browse files Browse the repository at this point in the history
…ulM.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13469 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jacobian committed Aug 4, 2010
1 parent 81ac173 commit 099c6b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions django/core/management/commands/dumpdata.py
Expand Up @@ -20,7 +20,8 @@ class Command(BaseCommand):
make_option('-n', '--natural', action='store_true', dest='use_natural_keys', default=False,
help='Use natural keys if they are available.'),
)
help = 'Output the contents of the database as a fixture of the given format.'
help = ("Output the contents of the database as a fixture of the given "
"format (using each model's default manager).")
args = '[appname appname.ModelName ...]'

def handle(self, *app_labels, **options):
Expand Down Expand Up @@ -163,4 +164,4 @@ def sort_dependencies(app_list):
)
model_dependencies = skipped

return model_list
return model_list
3 changes: 2 additions & 1 deletion docs/topics/db/managers.txt
Expand Up @@ -170,7 +170,8 @@ and ``Person.people.all()``, yielding predictable results.
If you use custom ``Manager`` objects, take note that the first ``Manager``
Django encounters (in the order in which they're defined in the model) has a
special status. Django interprets the first ``Manager`` defined in a class as
the "default" ``Manager``, and several parts of Django will use that ``Manager``
the "default" ``Manager``, and several parts of Django
(including :djadmin:`dumpdata`) will use that ``Manager``
exclusively for that model. As a result, it's a good idea to be careful in
your choice of default manager in order to avoid a situation where overriding
``get_query_set()`` results in an inability to retrieve objects you'd like to
Expand Down

0 comments on commit 099c6b8

Please sign in to comment.