Switched from usign a method that was about to be deprecated to normal code.

This commit is contained in:
Alex Gaynor 2012-07-14 16:02:30 -07:00
parent 3e8d8bb094
commit 9877d25dc6
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class Options(object):
if self.parents: if self.parents:
# Promote the first parent link in lieu of adding yet another # Promote the first parent link in lieu of adding yet another
# field. # field.
field = self.parents.value_for_index(0) field = next(self.parents.itervalues())
# Look for a local field with the same name as the # Look for a local field with the same name as the
# first parent link. If a local field has already been # first parent link. If a local field has already been
# created, use it instead of promoting the parent # created, use it instead of promoting the parent