Opened 15 years ago
Closed 15 years ago
#11357 closed (fixed)
contrib.admindocs ignores many-to-many relations
Reported by: | James Bennett | Owned by: | nobody |
---|---|---|---|
Component: | Contrib apps | Version: | 1.0 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
It's a one-line patch; needs to look at _meta.get_all_related_many_to_many_objects()
when collecting related objects.
Attachments (3)
Change History (5)
by , 15 years ago
Attachment: | admindocs-m2m.diff added |
---|
by , 15 years ago
Attachment: | admindocs-m2m-both-ways.diff added |
---|
comment:1 by , 15 years ago
Has patch: | set |
---|
I have taken the admindocs-m2m-both-ways.diff patch and updated it so it is consistent with other relationships. <field>.count
is now listed and the data type of <field>.all
is changed to List
.
However, I simply copied how it was done for the other relations — maybe there is a better/cleaner way of doing this, rather than repeating these parts.
by , 15 years ago
Attachment: | admindocs-m2m-both-ways-2.patch added |
---|
Added <field>.count, and other consistency changes.
New patch; respects both sides of the m2m