  
          def natural_key(self):
              return (self.first_name, self.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)
  
  When ``use_natural_keys=True`` is specified, Django will use the
  ``natural_key()`` method to serialize any reference to objects of the
 
</s> remove Deserialization of natural keys
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

It is for these reasons that Django provides `natural keys`. A natural
 </s> add It is for these reasons that Django provides *natural keys*. A natural
        class Meta:
            unique_together = (('first_name', 'last_name'),)

That method should always return a natural key tuple -- in this
example, ``(first name, last name)``. Then, when you call
``serializers.serialize()``, you provide a ``use_natural_keys=True``
argument::
  
          def natural_key(self):
              return (self.first_name, self.last_name)
  
        class Meta:
            unique_together = (('first_name', 'last_name'),)

That method should always return a natural key tuple -- in this
example, ``(first name, last name)``. Then, when you call
``serializers.serialize()``, you provide a ``use_natural_keys=True``
argument::
        class Meta:
            unique_together = (('first_name', 'last_name'),)

That method should always return a natural key tuple -- in this
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)
  
  When ``use_natural_keys=True`` is specified, Django will use the
  ``natural_key()`` method to serialize any reference to objects of the
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #13418 -- Added notes on uniqueness requirements for natural keys. Thanks to hunajakippo for the suggestion, and Ramiro Morales for the draft text.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13146 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
docs/topics/serialization.txt