Changes between Initial Version and Version 1 of Ticket #24997, comment 2
- Timestamp:
- Jun 17, 2015, 4:33:43 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24997, comment 2
initial v1 8 8 # on these for now because they are relatively rare cases. 9 9 assert batch_size is None or batch_size > 0 10 - if self.model._meta.parents and not self.model._meta.proxy:11 + if self.model._meta.parents :10 - if self.model._meta.parents: 11 + if self.model._meta.parents and not self.model._meta.proxy: 12 12 raise ValueError("Can't bulk create an inherited model") 13 13 if not objs: … … 15 15 self._for_write = True 16 16 connection = connections[self.db] 17 - fields = self.model._meta. concrete_fields18 + fields = self.model._meta. local_concrete_fields17 - fields = self.model._meta.local_concrete_fields 18 + fields = self.model._meta.concrete_fields 19 19 objs = list(objs) 20 20 self._populate_pk_values(objs)