From 4323c228cc777e823c2d212858c333fbbc8766ad Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Sun, 12 Sep 2010 19:20:58 +0000 Subject: [PATCH] Always pass models in post_syncdb signals as a set (not as a list sometimes). Fixed #5848, thanks to PJCrosier. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13768 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/management/commands/flush.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/management/commands/flush.py b/django/core/management/commands/flush.py index f7e769bdac..093c6db7b9 100644 --- a/django/core/management/commands/flush.py +++ b/django/core/management/commands/flush.py @@ -72,7 +72,7 @@ The full error: %s""" % (connection.settings_dict['NAME'], e)) 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) + emit_post_sync_signal(set(all_models), verbosity, interactive, db) # Reinstall the initial_data fixture. kwargs = options.copy()