Skip to content

Commit

Permalink
[1.2.X] Fixed #13661 -- Corrected example in the serialization docs. …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
freakboy3742 committed Aug 7, 2010
1 parent 049a246 commit e7b009c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/topics/serialization.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e7b009c

Please sign in to comment.