Ticket #7785: note-about-primary-keys.diff

File note-about-primary-keys.diff, 603 bytes (added by Rudolph Froger, 16 years ago)

Adds note to docs about field types for primary keys

  • docs/contenttypes.txt

     
    256256which have a ``GenericForeignKey`` pointing at it will be deleted as well. In
    257257the example above, this means that if a ``Bookmark`` object were deleted, any
    258258``TaggedItem`` objects pointing at it would be deleted at the same time.
     259
     260Please also note that all the primary-keys of the models you want to refer to
     261must be of the same type (``IntegerField`` or ``PositiveIntegerField`` is
     262most common).
Back to Top