Kaydet (Commit) 533d1ab3 authored tarafından Tim Graham's avatar Tim Graham

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

Thanks marky1991.
üst 1ccdc081
...@@ -358,6 +358,9 @@ normal field object, these examples will *not* work:: ...@@ -358,6 +358,9 @@ normal field object, these examples will *not* work::
# This will also fail # This will also fail
>>> TaggedItem.objects.get(content_object=guido) >>> 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 Reverse generic relations
------------------------- -------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment