Typo fix for exception message.

This commit is contained in:
Jonas Gastal 2013-12-24 14:26:50 -02:00
parent 9b8192ce51
commit 96967f642f
1 changed files with 1 additions and 1 deletions

View File

@ -1084,7 +1084,7 @@ class ForeignObject(RelatedField):
if len(self.from_fields) < 1 or len(self.from_fields) != len(self.to_fields): if len(self.from_fields) < 1 or len(self.from_fields) != len(self.to_fields):
raise ValueError('Foreign Object from and to fields must be the same non-zero length') raise ValueError('Foreign Object from and to fields must be the same non-zero length')
if isinstance(self.rel.to, six.string_types): if isinstance(self.rel.to, six.string_types):
raise ValueError('Related model %r cannot been resolved' % self.rel.to) raise ValueError('Related model %r cannot be resolved' % self.rel.to)
related_fields = [] related_fields = []
for index in range(len(self.from_fields)): for index in range(len(self.from_fields)):
from_field_name = self.from_fields[index] from_field_name = self.from_fields[index]