mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
[1.6.x] Fixed #20958 -- Documented that GenericForeignKey fields can't be accessed in forms.
Thanks marky1991.
Backport of 533d1ab334
from master
This commit is contained in:
parent
fe0eb2f995
commit
cda4fc8225
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
-------------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue