Refs #9475 -- Simplified dictionary unpacking.

This commit is contained in:
Simon Charette 2019-01-16 09:20:04 -05:00 committed by Tim Graham
parent d212bc03ba
commit dbcf2ffa77
1 changed files with 2 additions and 2 deletions

View File

@ -1105,10 +1105,10 @@ def create_forward_many_to_many_manager(superclass, rel, reverse):
# Add the ones that aren't there already
self.through._default_manager.using(db).bulk_create([
self.through(**{**through_defaults, **{
self.through(**through_defaults, **{
'%s_id' % source_field_name: self.related_val[0],
'%s_id' % target_field_name: obj_id,
}})
})
for obj_id in new_ids
])