Ticket #13661: serialize_docs.patch

File serialize_docs.patch, 631 bytes (added by Jared Forsyth, 14 years ago)
  • docs/topics/serialization.txt

     
    338338``serializers.serialize()``, you provide a ``use_natural_keys=True``
    339339argument::
    340340
    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)
    342342
    343343When ``use_natural_keys=True`` is specified, Django will use the
    344344``natural_key()`` method to serialize any reference to objects of the
Back to Top