Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #13746: made the dumdata help message a bit clearer. Thanks, Pa…

…ulM.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13469 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 099c6b8710c0751f565378250ddfdc6a6476ddab 1 parent 81ac173
Jacob Kaplan-Moss authored August 04, 2010
5  django/core/management/commands/dumpdata.py
@@ -20,7 +20,8 @@ class Command(BaseCommand):
20 20
         make_option('-n', '--natural', action='store_true', dest='use_natural_keys', default=False,
21 21
             help='Use natural keys if they are available.'),
22 22
     )
23  
-    help = 'Output the contents of the database as a fixture of the given format.'
  23
+    help = ("Output the contents of the database as a fixture of the given "
  24
+            "format (using each model's default manager).")
24 25
     args = '[appname appname.ModelName ...]'
25 26
 
26 27
     def handle(self, *app_labels, **options):
@@ -163,4 +164,4 @@ def sort_dependencies(app_list):
163 164
             )
164 165
         model_dependencies = skipped
165 166
 
166  
-    return model_list
  167
+    return model_list
3  docs/topics/db/managers.txt
@@ -170,7 +170,8 @@ and ``Person.people.all()``, yielding predictable results.
170 170
 If you use custom ``Manager`` objects, take note that the first ``Manager``
171 171
 Django encounters (in the order in which they're defined in the model) has a
172 172
 special status. Django interprets the first ``Manager`` defined in a class as
173  
-the "default" ``Manager``, and several parts of Django will use that ``Manager``
  173
+the "default" ``Manager``, and several parts of Django
  174
+(including :djadmin:`dumpdata`) will use that ``Manager``
174 175
 exclusively for that model. As a result, it's a good idea to be careful in
175 176
 your choice of default manager in order to avoid a situation where overriding
176 177
 ``get_query_set()`` results in an inability to retrieve objects you'd like to

0 notes on commit 099c6b8

Please sign in to comment.
Something went wrong with that request. Please try again.