Ticket #3905: mgmt.diff

File mgmt.diff, 813 bytes (added by Vinay Sajip <vinay_sajip@…>, 18 years ago)

Path now relative to root directory

  • django/core/management.py

     
    539539    # Install custom SQL for the app (but only if this
    540540    # is a model we've just created)
    541541    for app in models.get_apps():
     542        app_name = app.__name__.split('.')[-2]
    542543        for model in models.get_models(app):
    543544            if model in created_models:
    544545                custom_sql = get_custom_sql_for_model(model)
     
    13251326    # Keep a count of the installed objects and fixtures
    13261327    count = [0,0]
    13271328    models = set()
    1328    
     1329
    13291330    humanize = lambda dirname: dirname and "'%s'" % dirname or 'absolute path'
    13301331
    13311332    # Get a cursor (even though we don't need one yet). This has
Back to Top