Browse files

Fixed #13661 -- Corrected example in the serialization docs. Thanks t…

…o jabapyth for the report.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 54e70e8 commit 92a15532baae79fd62843e7747f2834dede4347d @freakboy3742 freakboy3742 committed Aug 7, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 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``
- >>> 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

0 comments on commit 92a1553

Please sign in to comment.