Browse files

Switched from usign a method that was about to be deprecated to norma…

…l code.
  • Loading branch information...
alex committed Jul 14, 2012
1 parent 3e8d8bb commit 9877d25dc67b9c852e1a69ece6153894d4c9d1d1
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/models/
@@ -126,7 +126,7 @@ def _prepare(self, model):
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

0 comments on commit 9877d25

Please sign in to comment.