Skip to content

Commit 9383a37

Browse files
committed
[1.2.X] Corrected fix committed in r13466. Refs #14025.
Backport of r13471 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13472 bcc190cf-cafb-0310-a4f2-bffc1f526a37
1 parent 1c237cb commit 9383a37

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

django/core/management/commands/flush.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ def handle_noargs(self, **options):
6666
# Emit the post sync signal. This allows individual
6767
# applications to respond as if the database had been
6868
# sync'd from scratch.
69-
all_models = [
70-
(app.__name__.split('.')[-2],
71-
[m for m in models.get_models(app, include_auto_created=True)
72-
if router.allow_syncdb(db, m)])
73-
for app in models.get_apps()
74-
]
69+
all_models = []
70+
for app in models.get_apps():
71+
all_models.extend([
72+
m for m in models.get_models(app, include_auto_created=True)
73+
if router.allow_syncdb(db, m)
74+
])
7575
emit_post_sync_signal(all_models, verbosity, interactive, db)
7676

7777
# Reinstall the initial_data fixture.

0 commit comments

Comments
 (0)