summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-01-17 20:14:45 -0500
committerTim Graham <timograham@gmail.com>2015-01-17 20:15:09 -0500
commit8822d0bf7d9aa8c494e98cdbb4a0586e7e950a44 (patch)
treedfdd4f8cca30b30a600336610a93db0fc03e2a02 /docs/ref
parenta41d41046af60e585713b33ff2e6e039446ce389 (diff)
[1.8.x] Removed usage of deprecated dumpdata options in docs.
Backport of 1d975ff44bc23efaf0ebf3e96cc35539d80bd244 from master
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/contenttypes.txt3
-rw-r--r--docs/ref/django-admin.txt8
2 files changed, 6 insertions, 5 deletions
diff --git a/docs/ref/contrib/contenttypes.txt b/docs/ref/contrib/contenttypes.txt
index ef857984df..b9610c3abc 100644
--- a/docs/ref/contrib/contenttypes.txt
+++ b/docs/ref/contrib/contenttypes.txt
@@ -334,7 +334,8 @@ model:
generic relations, you should probably be using a natural key to uniquely
identify related :class:`~django.contrib.contenttypes.models.ContentType`
objects. See :ref:`natural keys<topics-serialization-natural-keys>` and
- :djadminopt:`dumpdata --natural <--natural>` for more information.
+ :djadminopt:`dumpdata --natural-foreign <--natural-foreign>` for more
+ information.
This will enable an API similar to the one used for a normal
:class:`~django.db.models.ForeignKey`;
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index 570766f18d..c6031b7d63 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -1925,14 +1925,14 @@ with ``True`` or ``False``, as you can see with the ``interactive`` option above
Named arguments can be passed by using either one of the following syntaxes::
# Similar to the command line
- management.call_command('dumpdata', '--natural')
+ management.call_command('dumpdata', '--natural-foreign')
# Named argument similar to the command line minus the initial dashes and
# with internal dashes replaced by underscores
- management.call_command('dumpdata', natural=True)
+ management.call_command('dumpdata', natural_foreign=True)
- # `use_natural_keys` is the option destination variable
- management.call_command('dumpdata', use_natural_keys=True)
+ # `use_natural_foreign_keys` is the option destination variable
+ management.call_command('dumpdata', use_natural_foreign_keys=True)
.. versionchanged:: 1.8