summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-08-07 02:48:11 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-08-07 02:48:11 +0000
commite7b009ce053cee1d65d5cd77200310a0de72789d (patch)
tree30e5d4e8b9bc30afd2e374e1059b22a252ebc155
parent049a246cc4829bce63b2860e4b2e3babf44e7df9 (diff)
[1.2.X] Fixed #13661 -- Corrected example in the serialization docs. Thanks to jabapyth for the report.
Backport of r13530 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13536 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--docs/topics/serialization.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/serialization.txt b/docs/topics/serialization.txt
index c5155107f0..b99a3b925e 100644
--- a/docs/topics/serialization.txt
+++ b/docs/topics/serialization.txt
@@ -338,7 +338,7 @@ example, ``(first name, last name)``. Then, when you call
``serializers.serialize()``, you provide a ``use_natural_keys=True``
argument::
- >>> serializers.serialize([book1, book2], format='json', indent=2, use_natural_keys=True)
+ >>> serializers.serialize('json', [book1, book2], indent=2, use_natural_keys=True)
When ``use_natural_keys=True`` is specified, Django will use the
``natural_key()`` method to serialize any reference to objects of the