diff options
| author | Roger Hu <rhu@hearsaycorp.com> | 2013-12-06 01:14:57 +0000 |
|---|---|---|
| committer | Baptiste Mispelon <bmispelon@gmail.com> | 2013-12-06 20:20:16 +0100 |
| commit | bbc73e6a12227f5ed52fd38bc37f56f434a0a72c (patch) | |
| tree | 8ec28a2e4da821c4cd9997cbb0cb1854506ef351 /django | |
| parent | 38e24d680d28b92997def9ab46a961d09bb81dce (diff) | |
Fixed #21566 -- Fixed AttributeError when using bulk_create with ForeignObject.
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/models/query.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/query.py b/django/db/models/query.py index 58180e1cf9..3226f38753 100644 --- a/django/db/models/query.py +++ b/django/db/models/query.py @@ -389,7 +389,7 @@ class QuerySet(object): return objs self._for_write = True connection = connections[self.db] - fields = self.model._meta.local_fields + fields = self.model._meta.local_concrete_fields with transaction.commit_on_success_unless_managed(using=self.db): if (connection.features.can_combine_inserts_with_and_without_auto_increment_pk and self.model._meta.has_auto_field): |
