mirror of https://github.com/django/django.git
Switched from usign a method that was about to be deprecated to normal code.
This commit is contained in:
parent
3e8d8bb094
commit
9877d25dc6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue