#10367 closed (fixed)
Improve docs for `GenericRelation` in `contenttypes`.
Reported by: | Tai Lee | Owned by: | Kevin Kubasik |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | GenericRelation GenericForeignKey comments kkmegapatch | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
At least one contrib app uses a non-default value for fk_field
in a GenericForeignKey
(comments app uses "object_pk", which means users need to specify their reverse generic relation as GenericRelation(Comment, object_id_field="object_pk")
, but keyword arguments for GenericRelation
are not documented.
Attachments (2)
Change History (13)
comment:1 by , 16 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 16 years ago
Has patch: | set |
---|
by , 16 years ago
Attachment: | 10367-genericrelation-r9907.diff added |
---|
comment:3 by , 16 years ago
milestone: | → 1.1 beta |
---|---|
Version: | 1.0-beta-1 → SVN |
Incorrectly set version as 1.0 beta, instead of milestone 1.1 beta.
comment:5 by , 16 years ago
Keywords: | kkmegapatch added |
---|---|
Owner: | changed from | to
comment:6 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:7 by , 16 years ago
by , 16 years ago
Attachment: | 10367-genericrelation-r10591.diff added |
---|
Fixed incorrect GenericRelation example.
comment:8 by , 16 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I think the fix in [10273] actually contained incorrect info about how to use GenericRelation
in case of non-default field names.
comment:9 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Updated to include an example.