Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#20958 closed Cleanup/optimization (fixed)

Mention That GenericForeignKey Fields Can't Be Accessed in Forms

Reported by: Mark Young Owned by: nobody
Component: Documentation Version: 1.5
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Any attempt to use GenericForeignKey fields in forms fails with an exception of this form

django.core.exceptions.FieldError: Unknown field(s) (recipient) specified for Message

. This limitation is not mentioned in the docs. My patch corrects this. (It's a trivial two word addition)

Attachments (1)

patch.diff (675 bytes ) - added by Mark Young 11 years ago.

Download all attachments as: .zip

Change History (5)

by Mark Young, 11 years ago

Attachment: patch.diff added

comment:1 by Tim Graham, 11 years ago

Triage Stage: UnreviewedAccepted
Type: UncategorizedCleanup/optimization

comment:2 by Tim Graham <timograham@…>, 11 years ago

Resolution: fixed
Status: newclosed

In 533d1ab334219d1c0d7791f94d71df771ef8ce76:

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

Thanks marky1991.

comment:3 by Tim Graham <timograham@…>, 11 years ago

In cda4fc822575168e85fcf5fbf8b4d524e1d6e0d3:

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

Thanks marky1991.

Backport of 533d1ab334 from master

comment:4 by Tim Graham <timograham@…>, 11 years ago

In 8f4552adf16f84d08b49706ab45a80551c58f0e6:

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

Thanks marky1991.

Backport of 533d1ab334 from master

Note: See TracTickets for help on using tickets.
Back to Top