Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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
  • Loading branch information...
commit e7b009ce053cee1d65d5cd77200310a0de72789d 1 parent 049a246
Russell Keith-Magee authored August 07, 2010

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  docs/topics/serialization.txt
2  docs/topics/serialization.txt
@@ -338,7 +338,7 @@ example, ``(first name, last name)``. Then, when you call
338 338
 ``serializers.serialize()``, you provide a ``use_natural_keys=True``
339 339
 argument::
340 340
 
341  
-    >>> serializers.serialize([book1, book2], format='json', indent=2, use_natural_keys=True)
  341
+    >>> serializers.serialize('json', [book1, book2], indent=2, use_natural_keys=True)
342 342
 
343 343
 When ``use_natural_keys=True`` is specified, Django will use the
344 344
 ``natural_key()`` method to serialize any reference to objects of the

0 notes on commit e7b009c

Please sign in to comment.
Something went wrong with that request. Please try again.