Ticket #7561: post_syncdb_signal.patch

File post_syncdb_signal.patch, 1016 bytes (added by cpinto, 16 years ago)
  • django/core/management/commands/syncdb.py

    === modified file 'django/core/management/commands/syncdb.py'
     
    102102
    103103        transaction.commit_unless_managed()
    104104
    105         # Send the post_syncdb signal, so individual apps can do whatever they need
    106         # to do at this point.
    107         emit_post_sync_signal(created_models, verbosity, interactive)
    108 
    109105        # Install custom SQL for the app (but only if this
    110106        # is a model we've just created)
    111107        for app in models.get_apps():
     
    153149        # Install the 'initial_data' fixture, using format discovery
    154150        from django.core.management import call_command
    155151        call_command('loaddata', 'initial_data', verbosity=verbosity)
     152
     153        # Send the post_syncdb signal, so individual apps can do whatever they need
     154        # to do at this point.
     155        emit_post_sync_signal(created_models, verbosity, interactive)
Back to Top