Opened 15 years ago
Last modified 15 years ago
#11795 closed
Allow use of inlines for many-to-many fields — at Version 3
Reported by: | sveri | Owned by: | nobody |
---|---|---|---|
Component: | Uncategorized | Version: | 1.1 |
Severity: | Keywords: | manytomanyfield inline | |
Cc: | miracle2k, | Triage Stage: | Unreviewed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | UI/UX: |
Description (last modified by )
When you try to create an inline field in admin.py for a manytomanyfield you always get the following error:
<class 'MyClass'> has no ForeignKey to <class 'OtherClass'>
It would be nice to be able to use inlines for many to many relations.
Change History (3)
comment:1 by , 15 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 15 years ago
Ok, thats true.
But is there a plan to support that for the future?
Should i open a feature request?
comment:3 by , 15 years ago
Description: | modified (diff) |
---|---|
Resolution: | invalid |
Status: | closed → reopened |
Summary: | inline for many-to-many colmuns not working → Allow use of inlines for many-to-many fields |
I'm not aware of any plans to add this feature. I've modified this ticket to reflect the feature request.
You may get your wish through a back channel. The changes required by #10109 will probably make this feature possible with no extra effort, as that ticket will require introducing a dummy model representation of m2m fields, and this dummy model may be compatible use in inlines. I plan to commit a fix for #10109 in the near future as a precursor to multiple-database and non-SQL backend support. I'll try to keep this ticket in mind before I commit.
The documentation you reference refers to many-to-many models that use an intermediate table, not to m2m relations in general.