Changes between Version 1 and Version 2 of Ticket #20603, comment 1


Ignore:
Timestamp:
Jun 14, 2013, 3:57:36 PM (11 years ago)
Author:
Aymeric Augustin

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20603, comment 1

    v1 v2  
    55--- a/django/core/management/sql.py
    66+++ 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):
    88 
    99 def emit_post_sync_signal(created_models, verbosity, interactive, db):
    1010     # 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()
    1315     for app in models.get_apps():
    1416         app_name = app.__name__.split('.')[-2]
Back to Top