mirror of
https://github.com/django/django.git
synced 2025-09-27 04:29:17 +00:00
Switched from usign a method that was about to be deprecated to normal code.
This commit is contained in:
parent
3e8d8bb094
commit
9877d25dc6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue