Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#13253 closed (fixed)

Help for manage.py dumpdata doesn't include models in possible arguments

Reported by: Alison Rowland 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: no UI/UX: no

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 Alison Rowland 14 years ago.
patch
dumpdata_help_bugfix.diff (764 bytes ) - added by Alison Rowland 14 years ago.

Download all attachments as: .zip

Change History (6)

by Alison Rowland, 14 years ago

Attachment: dumpdata_help_bugfix.patch added

patch

by Alison Rowland, 14 years ago

Attachment: dumpdata_help_bugfix.diff added

comment:1 by Alison Rowland, 14 years ago

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 by Russell Keith-Magee, 14 years ago

Component: UncategorizedSerialization
milestone: 1.2
Triage Stage: UnreviewedReady for checkin

comment:3 by Russell Keith-Magee, 14 years ago

Resolution: fixed
Status: newclosed

(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 by Jacob, 13 years ago

milestone: 1.2

Milestone 1.2 deleted

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