Author: russellm Date: 2010-08-04 20:29:59 -0500 (Wed, 04 Aug 2010) New Revision: 13471
Modified: django/trunk/django/core/management/commands/flush.py Log: Corrected fix committed in r13466. Refs #14025. Modified: django/trunk/django/core/management/commands/flush.py =================================================================== --- django/trunk/django/core/management/commands/flush.py 2010-08-04 19:08:58 UTC (rev 13470) +++ django/trunk/django/core/management/commands/flush.py 2010-08-05 01:29:59 UTC (rev 13471) @@ -66,12 +66,12 @@ # 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. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.