From 9877d25dc67b9c852e1a69ece6153894d4c9d1d1 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 14 Jul 2012 16:02:30 -0700 Subject: [PATCH] Switched from usign a method that was about to be deprecated to normal code. --- django/db/models/options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/models/options.py b/django/db/models/options.py index 44f8891942..767b625c1d 100644 --- a/django/db/models/options.py +++ b/django/db/models/options.py @@ -126,7 +126,7 @@ class Options(object): if self.parents: # Promote the first parent link in lieu of adding yet another # field. - field = self.parents.value_for_index(0) + field = next(self.parents.itervalues()) # Look for a local field with the same name as the # first parent link. If a local field has already been # created, use it instead of promoting the parent