#NEWLINE# def bulk_create_translations( self ) : #NEWLINE# #INDENT# Translation . objects . bulk_create ( self . translations_to_create ) #NEWLINE# memory_entries = [ TranslationMemoryEntry ( source = t . entity . string , target = t . string , locale_id = t . locale_id , entity_id = memory_entries . entity . pk , translation_id = t . pk ) for t in self . translations_to_create if ( t . plural_form in ( None , 0 ) ) ] #NEWLINE# TranslationMemoryEntry . objects . bulk_create ( memory_entries )