From bb1cb76dfbd9cdbe820e1f117fec007269528b2a Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Fri, 21 Jul 2006 03:56:06 +0000 Subject: [PATCH] Fixed keyboard slip that was accidentally committed git-svn-id: http://code.djangoproject.com/svn/django/trunk@3405 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/management.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/management.py b/django/core/management.py index 75142c6eb1..047bdda06e 100644 --- a/django/core/management.py +++ b/django/core/management.py @@ -105,7 +105,7 @@ def get_sql_create(app): output, references = _get_sql_model_create(model, known_models) final_output.extend(output) for refto, refs in references.items(): - pending_references.set_default(refto,[]).extend(refs) + pending_references.setdefault(refto,[]).extend(refs) final_output.extend(_get_sql_for_pending_references(model, pending_references)) # Keep track of the fact that we've created the table for this model. known_models.add(model)