Changes between Version 11 and Version 12 of DynamicModels
- Timestamp:
- Jan 29, 2008, 4:29:51 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DynamicModels
v11 v12 229 229 #!python 230 230 def install(model): 231 from django.core import management231 from django.core.management import sql, color 232 232 from django.db import connection 233 233 … … 241 241 242 242 # disable terminal colors in the sql statements 243 management.disable_termcolors()243 style = color.no_style() 244 244 245 245 cursor = connection.cursor() 246 statements, pending = management._get_sql_model_create(model)246 statements, pending = sql.sql_model_create(model, style) 247 247 for sql in statements: 248 248 cursor.execute(sql)