summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPreston Holmes <preston@ptone.com>2013-05-19 12:39:14 +0200
committerPreston Holmes <preston@ptone.com>2013-05-19 09:10:40 -0700
commit6786920fd8a1dfa43bba8333548c2496847298af (patch)
tree572ca38edf73ec30095bd25f691b6879b230dfc1 /docs
parentbdde7feb26f89e580c2b21154196fe3f8c774677 (diff)
Fixed #16330 -- added --pks option in dumpdata command
Thanks to guettli for the initial ticket and patch, with additional work from mehmetakyuz and Kevin Brolly.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/django-admin.txt9
-rw-r--r--docs/releases/1.6.txt4
2 files changed, 13 insertions, 0 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index 2f2880679c..e193a448d2 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -227,6 +227,15 @@ a natural key definition. If you are dumping ``contrib.auth`` ``Permission``
objects or ``contrib.contenttypes`` ``ContentType`` objects, you should
probably be using this flag.
+.. versionadded:: 1.6
+
+.. django-admin-option:: --pks
+
+By default, ``dumpdata`` will output all the records of the model, but
+you can use the ``--pks`` option to specify a comma seperated list of
+primary keys on which to filter. This is only available when dumping
+one model.
+
flush
-----
diff --git a/docs/releases/1.6.txt b/docs/releases/1.6.txt
index a6244498f2..9950717420 100644
--- a/docs/releases/1.6.txt
+++ b/docs/releases/1.6.txt
@@ -249,6 +249,10 @@ Minor features
and :func:`~django.contrib.auth.views.password_change`, you can now pass
URL names and they will be resolved.
+* The ``dumpdata`` manage.py command now has a --pks option which will
+ allow users to specify the primary keys of objects they want to dump.
+ This option can only be used with one model.
+
Backwards incompatible changes in 1.6
=====================================