Opened 13 years ago

Closed 12 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: master
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


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 Changed 13 years ago by anonymous

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.

comment:2 Changed 12 years ago by Gary Wilson <gary.wilson@…>

Summary: Update Multiple ManytoMany Fields AdminUpdate all fields related to the same model when adding an item
Triage Stage: UnreviewedAccepted
Version: magic-removalSVN

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.

comment:3 Changed 12 years ago by James Bennett

Resolution: duplicate
Status: newclosed

Duplicate of #562.

Note: See TracTickets for help on using tickets.
Back to Top