Changes between Initial Version and Version 1 of Ticket #24997, comment 2


Ignore:
Timestamp:
Jun 17, 2015, 4:33:43 PM (10 years ago)
Author:
William Schwartz

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24997, comment 2

    initial v1  
    88         # on these for now because they are relatively rare cases.
    99         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:
    1212             raise ValueError("Can't bulk create an inherited model")
    1313         if not objs:
     
    1515         self._for_write = True
    1616         connection = connections[self.db]
    17 -        fields = self.model._meta.concrete_fields
    18 +        fields = self.model._meta.local_concrete_fields
     17-        fields = self.model._meta.local_concrete_fields
     18+        fields = self.model._meta.concrete_fields
    1919         objs = list(objs)
    2020         self._populate_pk_values(objs)
Back to Top