Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#13253 closed (fixed)

Help for dumpdata doesn't include models in possible arguments

Reported by: arowla Owned by: nobody
Component: Core (Serialization) Version: 1.1
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


The help string describing how to call dumpdata mentions including app names as arguments, but it is also possible to include model names.

Attachments (2)

dumpdata_help_bugfix.patch (763 bytes) - added by arowla 6 years ago.
dumpdata_help_bugfix.diff (764 bytes) - added by arowla 6 years ago.

Download all attachments as: .zip

Change History (6)

Changed 6 years ago by arowla


Changed 6 years ago by arowla

comment:1 Changed 6 years ago by arowla

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

For some reason, my patch is not uploading correctly. My file definitely isn't empty. Oh well. Here it is:

Index: django/core/management/commands/
--- django/core/management/commands/	(revision 12890)
+++ django/core/management/commands/	(working copy)
@@ -21,7 +21,7 @@
             help='Use natural keys if they are available.'),
     help = 'Output the contents of the database as a fixture of the given format.'
-    args = '[appname ...]'
+    args = '[appname[.modelname] ...]'
     def handle(self, *app_labels, **options):
         from django.db.models import get_app, get_apps, get_models, get_model
@@ -163,4 +163,4 @@
         model_dependencies = skipped
-    return model_list
\ No newline at end of file
+    return model_list

comment:2 Changed 6 years ago by russellm

  • Component changed from Uncategorized to Serialization
  • milestone set to 1.2
  • Triage Stage changed from Unreviewed to Ready for checkin

comment:3 Changed 6 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

(In [12893]) Fixed #13253 -- Updated the help message for dumpdata to indicate that individual models can be serialized. Thanks to arowla for the report.

comment:4 Changed 5 years ago by jacob

  • milestone 1.2 deleted

Milestone 1.2 deleted

Note: See TracTickets for help on using tickets.
Back to Top