Ticket #12840: 12840.diff

File 12840.diff, 971 bytes (added by Ramiro Morales, 14 years ago)
  • docs/topics/serialization.txt

    diff --git a/docs/topics/serialization.txt b/docs/topics/serialization.txt
    a b  
    196196Natural keys
    197197------------
    198198
     199.. versionadded:: 1.2
     200   The ability to use natural keys when serializing/deserializing data was
     201   added in the 1.2 release.
     202
    199203The default serialization strategy for foreign keys and many-to-many
    200204relations is to serialize the value of the primary key(s) of the
    201205objects in the relation. This strategy works well for most types of
     
    341345must exist before you include a natural key reference to that data.
    342346
    343347To accommodate this limitation, calls to :djadmin:`dumpdata` that use
    344 the :djadminopt:`--natural` optionwill serialize any model with a
     348the :djadminopt:`--natural` option will serialize any model with a
    345349``natural_key()`` method before it serializes normal key objects.
    346350
    347351However, this may not always be enough. If your natural key refers to
Back to Top