From ef392387c24fa5bd9bf3fd3c43781cefcafbee3f Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 5 Jul 2014 20:28:30 +0200 Subject: [1.7.x] Fixed various minor doc typos / references. Backport of 67f9f385aa from master --- django/forms/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/forms') diff --git a/django/forms/models.py b/django/forms/models.py index c53f844400..effdd78238 100644 --- a/django/forms/models.py +++ b/django/forms/models.py @@ -931,7 +931,7 @@ def _get_foreign_key(parent_model, model, fk_name=None, can_fail=False): """ Finds and returns the ForeignKey from model to parent if there is one (returns None if can_fail is True and no such field exists). If fk_name is - provided, assume it is the name of the ForeignKey field. Unles can_fail is + provided, assume it is the name of the ForeignKey field. Unless can_fail is True, an exception is raised if there is no ForeignKey from model to parent_model. """ -- cgit v1.3