From 9234131c05ec0c63e035883d9586cb1630f3881a Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 22 Sep 2012 01:22:43 +0100 Subject: [PATCH] Remove weird syncdb managed thing - no longer needed. --- django/core/management/commands/syncdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))