Save a list of updated Model objects to the database.
(self, objs)
| 322 | apply_(obj_by_id[id_], new_dict) |
| 323 | |
| 324 | def save_changes(self, objs): |
| 325 | """Save a list of updated Model objects to the database.""" |
| 326 | # Save to the database and possibly write tags. |
| 327 | for ob in objs: |
| 328 | if ob._dirty: |
| 329 | self._log.debug("saving changes to {}", ob) |
| 330 | ob.try_sync(ui.should_write(), ui.should_move()) |
| 331 | |
| 332 | # Methods for interactive importer execution. |
| 333 |