summaryrefslogtreecommitdiff
path: root/docs/ref/django-admin.txt
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2009-02-28 05:35:22 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2009-02-28 05:35:22 +0000
commitdb2a95f6f58f5593dbcee8dcf51f3e9d71449708 (patch)
tree0732f88402e8d4b58f80d9f21c6dc3844512e746 /docs/ref/django-admin.txt
parentb337884fcf6b2c1934d380dd99bbe485d3b88f3a (diff)
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
Diffstat (limited to 'docs/ref/django-admin.txt')
-rw-r--r--docs/ref/django-admin.txt10
1 files changed, 9 insertions, 1 deletions
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 <appname appname ...>
+.. django-admin:: dumpdata <appname appname appname.Model ...>
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
-----