admin "add another" inline JS fails for M2M inlines
|Reported by:||carljm||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The generated "id" attributes contain a spurious "+" right after the model name, which seems to prevent jQuery from selecting by that id.
This is with an auto-generated through model (using "model = Something.relation.through" in the InlineModelAdmin). Haven't yet tested with real m2m through models, but I'm guessing that would make the problem go away, as it's then just like a normal FK.
I'll add a test case soon.
Change History (3)
comment:1 Changed 4 years ago by russellm
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted