Changes between Version 1 and Version 2 of Ticket #20603, comment 1
- Timestamp:
- Jun 14, 2013, 3:57:36 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #20603, comment 1
v1 v2 5 5 --- a/django/core/management/sql.py 6 6 +++ b/django/core/management/sql.py 7 @@ -207,6 +207, 8@@ def emit_pre_sync_signal(create_models, verbosity, interactive, db):7 @@ -207,6 +207,10 @@ def emit_pre_sync_signal(create_models, verbosity, interactive, db): 8 8 9 9 def emit_post_sync_signal(created_models, verbosity, interactive, db): 10 10 # Emit the post_sync signal for every application. 11 + print("post-syncdb on %d apps" % len(models.get_apps())) 12 + import pdb; pdb.set_trace() 11 + num_apps = len(models.get_apps()) 12 + print("post-syncdb on %d apps" % num_apps) 13 + if num_apps > 10: 14 + import pdb; pdb.set_trace() 13 15 for app in models.get_apps(): 14 16 app_name = app.__name__.split('.')[-2]