diff options
| author | Tim Graham <timograham@gmail.com> | 2013-08-01 14:09:47 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-08-02 08:42:19 -0400 |
| commit | 196cc875b26f266e8f8dfd5be9daa0b8f246b9cd (patch) | |
| tree | 6de2bf6cb866c024fc9148d8beca8355d9290ea0 /django | |
| parent | b3e54f4a01dd410a87bc3d0669cb7b36aa74e7a8 (diff) | |
[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
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/backends/creation.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 = [] |
