Skip to content

Commit 4323c22

Browse files
committed
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
1 parent fc26da6 commit 4323c22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django/core/management/commands/flush.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def handle_noargs(self, **options):
7272
m for m in models.get_models(app, include_auto_created=True)
7373
if router.allow_syncdb(db, m)
7474
])
75-
emit_post_sync_signal(all_models, verbosity, interactive, db)
75+
emit_post_sync_signal(set(all_models), verbosity, interactive, db)
7676

7777
# Reinstall the initial_data fixture.
7878
kwargs = options.copy()

0 commit comments

Comments
 (0)