From 1c8547bf98b792a382c2da3b788b5e9359c0c417 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Thu, 5 Aug 2010 01:29:59 +0000 Subject: [PATCH] Corrected fix committed in r13466. Refs #14025. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13471 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/management/commands/flush.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/django/core/management/commands/flush.py b/django/core/management/commands/flush.py index 98e3f3151b..f7e769bdac 100644 --- a/django/core/management/commands/flush.py +++ b/django/core/management/commands/flush.py @@ -66,12 +66,12 @@ The full error: %s""" % (connection.settings_dict['NAME'], e)) # Emit the post sync signal. This allows individual # applications to respond as if the database had been # sync'd from scratch. - all_models = [ - (app.__name__.split('.')[-2], - [m for m in models.get_models(app, include_auto_created=True) - if router.allow_syncdb(db, m)]) - for app in models.get_apps() - ] + all_models = [] + for app in models.get_apps(): + all_models.extend([ + m for m in models.get_models(app, include_auto_created=True) + if router.allow_syncdb(db, m) + ]) emit_post_sync_signal(all_models, verbosity, interactive, db) # Reinstall the initial_data fixture.