Ticket #6066: 6066-2.diff
File 6066-2.diff, 949 bytes (added by , 17 years ago) |
---|
-
django/core/management/sql.py
482 482 from django.db import models 483 483 from django.dispatch import dispatcher 484 484 # Emit the post_sync signal for every application. 485 for app in models.get_apps(): 485 done = [] 486 todo = models.get_apps() 487 while len(todo) > 0: 488 app = todo.pop() 486 489 app_name = app.__name__.split('.')[-2] 487 490 if verbosity >= 2: 488 491 print "Running post-sync handlers for application", app_name 489 492 dispatcher.send(signal=models.signals.post_syncdb, sender=app, 490 493 app=app, created_models=created_models, 491 verbosity=verbosity, interactive=interactive) 494 verbosity=verbosity, interactive=interactive, 495 done=done, todo=todo) 496 done.insert(0, app)