Opened 19 years ago
Closed 17 years ago
#1470 closed defect (duplicate)
Update all fields related to the same model when adding an item
Reported by: | anonymous | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | minor | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I have two manytomany fields in my model, with both pointing to the same model.
in the admin interface when i add an item from within this model, the second combo box doesn't update without refreshing the page.
Change History (3)
comment:1 by , 19 years ago
comment:2 by , 18 years ago
Summary: | Update Multiple ManytoMany Fields Admin → Update all fields related to the same model when adding an item |
---|---|
Triage Stage: | Unreviewed → Accepted |
Version: | magic-removal → SVN |
This would require some javascript help, and doesn't just happen for ManyToManyFields. This is something that comes up often enough that I am going to mark accepted.
Note:
See TracTickets
for help on using tickets.
I've noticed this, too.
It seems only to happen when the target of the ManyToManyField (i.e. the class provided as the first positional argument) contains a non-default primary key.
So, as a temporary workaround, you could try ensuring that:
isn't present in the constructors for any of the fields in the many-to-many target class. This works for me.