summaryrefslogtreecommitdiff
path: root/django/db/models/sql/compiler.py
diff options
context:
space:
mode:
authorTobias McNulty <tobias@caktusgroup.com>2013-04-08 15:28:15 -0400
committerCarl Meyer <carl@oddbird.net>2013-04-08 13:41:36 -0600
commit161c4da588d4cc757da44bcbb5875a84a7b8a7e6 (patch)
tree0e6292f2d5f220e766e64756fe63ebb15fa95539 /django/db/models/sql/compiler.py
parent4a7292df3be2338ff5d915a9ab3107067f662534 (diff)
Fixed #14019 -- Initialize `SQLInsertCompiler.return_id` attribute.
Diffstat (limited to 'django/db/models/sql/compiler.py')
-rw-r--r--django/db/models/sql/compiler.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py
index 1f19131ba2..3444b74ac3 100644
--- a/django/db/models/sql/compiler.py
+++ b/django/db/models/sql/compiler.py
@@ -804,6 +804,11 @@ class SQLCompiler(object):
class SQLInsertCompiler(SQLCompiler):
+
+ def __init__(self, *args, **kwargs):
+ self.return_id = False
+ super(SQLInsertCompiler, self).__init__(*args, **kwargs)
+
def placeholder(self, field, val):
if field is None:
# A field value of None means the value is raw.