diff options
| author | Andrew Godwin <andrew@aeracode.org> | 2012-09-22 01:22:43 +0100 |
|---|---|---|
| committer | Andrew Godwin <andrew@aeracode.org> | 2012-09-22 01:22:43 +0100 |
| commit | 9234131c05ec0c63e035883d9586cb1630f3881a (patch) | |
| tree | 1c219b0e5cb3510859311560baeae620038d6342 | |
| parent | 45e5eedea99ed5aaa1df8ab505527566097e2328 (diff) | |
Remove weird syncdb managed thing - no longer needed.
| -rw-r--r-- | django/core/management/commands/syncdb.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/management/commands/syncdb.py b/django/core/management/commands/syncdb.py index bb3f916968..56e94d9e80 100644 --- a/django/core/management/commands/syncdb.py +++ b/django/core/management/commands/syncdb.py @@ -72,7 +72,7 @@ class Command(NoArgsCommand): opts = model._meta converter = connection.introspection.table_name_converter # Note that if a model is unmanaged we short-circuit and never try to install it - return opts.managed and not ((converter(opts.db_table) in tables) or + return not ((converter(opts.db_table) in tables) or (opts.auto_created and converter(opts.auto_created._meta.db_table) in tables)) |
