Permalink
Browse files

[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
  • Loading branch information...
1 parent 1c237cb commit 9383a37485f4c6a8b132447c7c0b66d598b0651a @freakboy3742 freakboy3742 committed Aug 5, 2010
Showing with 6 additions and 6 deletions.
  1. +6 −6 django/core/management/commands/flush.py
@@ -66,12 +66,12 @@ def handle_noargs(self, **options):
# 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.

0 comments on commit 9383a37

Please sign in to comment.