Changes between Version 11 and Version 12 of DynamicModels


Ignore:
Timestamp:
01/29/2008 04:29:51 PM (8 years ago)
Author:
jbaird
Comment:

Modified syncdb entry to use new management features

Legend:

Unmodified
Added
Removed
Modified
  • DynamicModels

    v11 v12  
    229229#!python
    230230def install(model):
    231     from django.core import management
     231    from django.core.management import sql, color
    232232    from django.db import connection
    233233
     
    241241
    242242    # disable terminal colors in the sql statements
    243     management.disable_termcolors()
     243    style = color.no_style()
    244244
    245245    cursor = connection.cursor()
    246     statements, pending = management._get_sql_model_create(model)
     246    statements, pending = sql.sql_model_create(model, style)
    247247    for sql in statements:
    248248        cursor.execute(sql)
Back to Top