Changes between Initial Version and Version 1 of Ticket #28514, comment 6


Ignore:
Timestamp:
Oct 11, 2017, 11:19:28 AM (7 years ago)
Author:
Дилян Палаузов

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28514, comment 6

    initial v1  
    44{{{
    55with 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)
    77}}}
    88
     
    2222* Once bulk_create(... on_conflict='ignore') [#28668] is implemented, revert the previous step, pass on_conflict='ignore' to bulk_create, and:
    2323 * 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
Back to Top