diff options
| author | Tim Graham <timograham@gmail.com> | 2013-08-01 14:09:47 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-08-02 07:41:56 -0400 |
| commit | aa830009de940e31711b4858501becd7f34a1972 (patch) | |
| tree | 03eb9d15f10438209ba235765e51408196494fcb /django | |
| parent | 31ee1207877578ad683c1d4f3aed47fc6dc7637e (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.py | 2 |
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 = [] |
