Commit 8f4552ad authored by Tim Graham's avatar Tim Graham
Browse files

[1.5.x] Fixed #20958 -- Documented that GenericForeignKey fields can't be accessed in forms.

Thanks marky1991.

Backport of 533d1ab3 from master
parent bc78ffa2
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -359,6 +359,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
-------------------------