summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-08-01 14:09:47 -0400
committerTim Graham <timograham@gmail.com>2013-08-02 07:41:56 -0400
commitaa830009de940e31711b4858501becd7f34a1972 (patch)
tree03eb9d15f10438209ba235765e51408196494fcb /django
parent31ee1207877578ad683c1d4f3aed47fc6dc7637e (diff)
Fixed #17519 -- Fixed missing SQL constraints to proxy models.
Thanks thibaultj for the report, jenh for the patch, and charettes for the tests.
Diffstat (limited to 'django')
-rw-r--r--django/db/backends/creation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/creation.py b/django/db/backends/creation.py
index 50e45c0e75..4d646b05dd 100644
--- a/django/db/backends/creation.py
+++ b/django/db/backends/creation.py
@@ -146,7 +146,7 @@ class BaseDatabaseCreation(object):
Returns any ALTER TABLE statements to add constraints after the fact.
"""
opts = model._meta
- if not opts.managed or opts.proxy or opts.swapped:
+ if not opts.managed or opts.swapped:
return []
qn = self.connection.ops.quote_name
final_output = []