From db2a95f6f58f5593dbcee8dcf51f3e9d71449708 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sat, 28 Feb 2009 05:35:22 +0000 Subject: Fixed #5610 -- Added the ability for dumpdata to take individual model names, as well as entire applications. Thanks to David Reynolds for his work on this patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9921 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/ref/django-admin.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'docs/ref/django-admin.txt') diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 7b6b6c4fd6..dff5e681f8 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -186,7 +186,7 @@ if you're ever curious to see the full list of defaults. dumpdata -------- -.. django-admin:: dumpdata +.. django-admin:: dumpdata Outputs to standard output all data in the database associated with the named application(s). @@ -228,6 +228,14 @@ directives:: easy for humans to read, so you can use the ``--indent`` option to pretty-print the output with a number of indentation spaces. +.. versionadded: 1.1 + +In addition to specifying application names, you can provide a list of +individual models, in the form of ``appname.Model``. If you specify a model +name to ``dumpdata``, the dumped output will be restricted to that model, +rather than the entire application. You can also mix application names and +model names. + flush ----- -- cgit v1.3