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

Thanks marky1991.
This commit is contained in:
Tim Graham 2013-09-04 13:18:08 -04:00
parent 1ccdc08189
commit 533d1ab334
1 changed files with 3 additions and 0 deletions

View File

@ -358,6 +358,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
-------------------------