Ticket #7597: syncdb_connection_fix.diff

File syncdb_connection_fix.diff, 625 bytes (added by Keith Bussell, 16 years ago)

actual fix

  • django/core/management/commands/syncdb.py

     
    106106        # to do at this point.
    107107        emit_post_sync_signal(created_models, verbosity, interactive)
    108108
     109        # The connection may have been closed by a post_syncdb reciever.
     110        cursor = connection.cursor()
     111
    109112        # Install custom SQL for the app (but only if this
    110113        # is a model we've just created)
    111114        for app in models.get_apps():
Back to Top