From 196cc875b26f266e8f8dfd5be9daa0b8f246b9cd Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 1 Aug 2013 14:09:47 -0400 Subject: [1.6.x] Fixed #17519 -- Fixed missing SQL constraints to proxy models. Thanks thibaultj for the report, jenh for the patch, and charettes for the tests. Backport of aa830009de from master --- django/db/backends/creation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django') diff --git a/django/db/backends/creation.py b/django/db/backends/creation.py index c9e5c83ade..bae439b419 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 = [] -- cgit v1.3