summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2012-07-14 16:02:30 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2012-07-14 16:02:30 -0700
commit9877d25dc67b9c852e1a69ece6153894d4c9d1d1 (patch)
tree51917b1d6e8bf3752471954a70ce43137e9ef4fa
parent3e8d8bb094b9f765d94ac033b9135bcb81b816d2 (diff)
Switched from usign a method that was about to be deprecated to normal code.
-rw-r--r--django/db/models/options.py2
1 files changed, 1 insertions, 1 deletions
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