Commit 3a55a2f4 authored by Karen Tracey's avatar Karen Tracey
Browse files

[1.1.X] Fixed #12286: Ensure proxied model's table is created.

Thanks to telenieko for the report and flyingfred0 for test and fix.

Test is r12828 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12829 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent df010f0a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -76,6 +76,7 @@ class Command(NoArgsCommand):
                    print "Creating table %s" % model._meta.db_table
                for statement in sql:
                    cursor.execute(statement)
                if sql:
                    tables.append(connection.introspection.table_name_converter(model._meta.db_table))

        # Create the m2m tables. This must be done after all tables have been created
+0 −0

Empty file added.

+0 −0

Empty file added.

+5 −0
Original line number Diff line number Diff line
from app2.models import NiceModel

class ProxyModel(NiceModel):
    class Meta:
        proxy = True
+0 −0

Empty file added.

Loading