[patch] admin m2m item-add popup broken when `filter_interface` is set
When filter_interface is set for a ManyToManyField, the admin popup for adding a new m2m item breaks upon saving the new item. The item is added to the database; the breakage occurs when the dismissAddAnotherPopup function in RelatedObjectLookups.js tries to look for the related select element, only to fail to find it because the Javascript code for filter_interface alters the DOM to have two new elements with changed ids (ending in "_from" and "_to").
The attached patch alters dismissAddAnotherPopup to look for the select element's id, and fall back to looking for id + "_to"; the latter will result in the function properly adding the new item via SelectBox calls.
patch against r2408 of trunk to fix admin popup breakage with m2m fields and
filter_interface