Opened 20 months ago

Closed 20 months ago

Last modified 20 months ago

#20958 closed Cleanup/optimization (fixed)

Mention That GenericForeignKey Fields Can't Be Accessed in Forms

Reported by: marky1991 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 marky1991 20 months ago.

Download all attachments as: .zip

Change History (5)

Changed 20 months ago by marky1991

comment:1 Changed 20 months ago by timo

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted
  • Type changed from Uncategorized to Cleanup/optimization

comment:2 Changed 20 months ago by Tim Graham <timograham@…>

  • Resolution set to fixed
  • Status changed from new to closed

In 533d1ab334219d1c0d7791f94d71df771ef8ce76:

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

Thanks marky1991.

comment:3 Changed 20 months ago by Tim Graham <timograham@…>

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 Changed 20 months ago by Tim Graham <timograham@…>

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