Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[1.5.x] Small generic FK docs tweaks.

5f7eecd from master.
  • Loading branch information...
1 parent 923b0de commit fd61ce9c4f03ddc66139e4658933216fa630c208 @ramiro ramiro committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 docs/ref/contrib/contenttypes.txt
5 docs/ref/contrib/contenttypes.txt
@@ -277,7 +277,7 @@ A normal :class:`~django.db.models.ForeignKey` can only "point
to" one other model, which means that if the ``TaggedItem`` model used a
:class:`~django.db.models.ForeignKey` it would have to
choose one and only one model to store tags for. The contenttypes
-application provides a special field type which
+application provides a special field type (``GenericForeignKey``) which
works around this and allows the relationship to be with any
@@ -287,7 +287,8 @@ model:
1. Give your model a :class:`~django.db.models.ForeignKey`
- to :class:`~django.contrib.contenttypes.models.ContentType`.
+ to :class:`~django.contrib.contenttypes.models.ContentType`. The usual
+ name for this field is "content_type".
2. Give your model a field that can store primary key values from the
models you'll be relating to. For most models, this means a

0 comments on commit fd61ce9

Please sign in to comment.
Something went wrong with that request. Please try again.