Fixed typo in forms/models.py comment.

This commit is contained in:
Simon Charette 2014-11-21 15:58:53 -05:00 committed by Tim Graham
parent 06726965c3
commit a7c3d0f288
1 changed files with 1 additions and 1 deletions

View File

@ -573,7 +573,7 @@ class BaseModelFormSet(BaseFormSet):
def _get_to_python(self, field): def _get_to_python(self, field):
""" """
If the field is a related field, fetch the concrete field's (that If the field is a related field, fetch the concrete field's (that
is, the ultimate pointed-to field's) get_prep_value. is, the ultimate pointed-to field's) to_python.
""" """
while field.rel is not None: while field.rel is not None:
field = field.rel.get_related_field() field = field.rel.get_related_field()