This question is in two parts, first part is about clearing a list and second part is about assigning an owner to an object.
I have a one-to-many relationship between tw
Here's what works for me:
activePerson.locations.clear() activePerson.properties = params ... activePerson.save()
This clears the set of locations, then adds back just the ones currently selected in params.