#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)
Change History (6)
by , 15 years ago
Attachment: | dumpdata_help_bugfix.patch added |
---|
by , 15 years ago
Attachment: | dumpdata_help_bugfix.diff added |
---|
comment:1 by , 15 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 , 15 years ago
Component: | Uncategorized → Serialization |
---|---|
milestone: | → 1.2 |
Triage Stage: | Unreviewed → Ready for checkin |
comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
patch