Changes between Initial Version and Version 1 of Ticket #28514, comment 6
- Timestamp:
- Oct 11, 2017, 11:19:28 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28514, comment 6
initial v1 4 4 {{{ 5 5 with transaction.atomic(using=db. savepoint=False): 6 self. ._add_items(self.source_Field_name, self.target_field_name, *objs)6 self._add_items(self.source_Field_name, self.target_field_name, *objs) 7 7 }}} 8 8 … … 22 22 * Once bulk_create(... on_conflict='ignore') [#28668] is implemented, revert the previous step, pass on_conflict='ignore' to bulk_create, and: 23 23 * In case of Postgresql retrieve information from bulk_create which objects were actually inserted, and send only for them m2m_changed 24 * For other databases, either send signal for all objects, even those which were in the database 24 * For other databases, either send signal for all objects, even those which were in the database, don't use bulk_create or throw IntegrityError