problem using two manytomany field objects in a change_form.html (when using filter_horizontal = ('field1','field2')
|Reported by:||martin.harrison@…||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
This is an issue that I have spotted - hope you can help.
The bug seems to occur when I have two (or more I presume) manytomantfield objects in a table.
If I use the admin forms to add a row to this table it works perfectly well. However, if I choose in the admin/ModelAdmin options to state that the 2 manytomany fields should be filter_horizontal then this causes the problems.
In the admin form for this table it appears that I can select two rows from the left hand side box and transfer them accross to the right hand side (RHS). I can do this for both manytomanyfield objects.
If I then save these changes this is where the problem occurs. It appears that the manytomanyfield where it still had the dropdown has only saved 1 of the 2 values. The manytomanyfield where the RHS was expanded to its full size due to the addition of an extra value is saved successfully.
Change History (3)
comment:1 Changed 7 years ago by Karen Tracey <kmtracey@…>
- Keywords nfa-someday added
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Resolution set to worksforme
- Status changed from new to closed