From cda4fc822575168e85fcf5fbf8b4d524e1d6e0d3 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 4 Sep 2013 13:18:08 -0400 Subject: [PATCH] [1.6.x] Fixed #20958 -- Documented that GenericForeignKey fields can't be accessed in forms. Thanks marky1991. Backport of 533d1ab334 from master --- docs/ref/contrib/contenttypes.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/ref/contrib/contenttypes.txt b/docs/ref/contrib/contenttypes.txt index fcd66a5b03..5b1c98e88f 100644 --- a/docs/ref/contrib/contenttypes.txt +++ b/docs/ref/contrib/contenttypes.txt @@ -369,6 +369,9 @@ normal field object, these examples will *not* work:: # This will also fail >>> TaggedItem.objects.get(content_object=guido) +Likewise, :class:`~django.contrib.contenttypes.generic.GenericForeignKey`\s +does not appear in :class:`~django.forms.ModelForm`\s. + Reverse generic relations -------------------------