Ticket #13661: serialize_docs.patch
File serialize_docs.patch, 631 bytes (added by , 14 years ago) |
---|
-
docs/topics/serialization.txt
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