Ticket #3905: mgmt.diff
File mgmt.diff, 813 bytes (added by , 18 years ago) |
---|
-
django/core/management.py
539 539 # Install custom SQL for the app (but only if this 540 540 # is a model we've just created) 541 541 for app in models.get_apps(): 542 app_name = app.__name__.split('.')[-2] 542 543 for model in models.get_models(app): 543 544 if model in created_models: 544 545 custom_sql = get_custom_sql_for_model(model) … … 1325 1326 # Keep a count of the installed objects and fixtures 1326 1327 count = [0,0] 1327 1328 models = set() 1328 1329 1329 1330 humanize = lambda dirname: dirname and "'%s'" % dirname or 'absolute path' 1330 1331 1331 1332 # Get a cursor (even though we don't need one yet). This has