Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#13253 closed (fixed)

Help for manage.py 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:

Description

The help string describing how to call manage.py 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 5 years ago.
patch
dumpdata_help_bugfix.diff (764 bytes) - added by arowla 5 years ago.

Download all attachments as: .zip

Change History (6)

Changed 5 years ago by arowla

patch

Changed 5 years ago by arowla

comment:1 Changed 5 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/dumpdata.py
===================================================================
--- django/core/management/commands/dumpdata.py	(revision 12890)
+++ django/core/management/commands/dumpdata.py	(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 5 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 5 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 4 years ago by jacob

  • milestone 1.2 deleted

Milestone 1.2 deleted

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