#13407 closed (fixed)
admin "add another" inline JS fails for M2M inlines
| Reported by: | Carl Meyer | Owned by: | nobody |
|---|---|---|---|
| Component: | contrib.admin | Version: | dev |
| Severity: | Keywords: | jquery | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
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 by , 16 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:2 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
For anyone chasing this: The spurious "+" is an exposure of an internal; Django uses a "+" suffix to hide autogenerated related_name attributes.