diff options
| author | Petras Zdanavičius <petraszd@gmail.com> | 2014-09-08 22:54:57 +0300 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-09-08 17:22:49 -0400 |
| commit | a3e9e9e6c6dc9ccff85c2a6d8db88cc207127f0c (patch) | |
| tree | 0a2e7122f18f26498874919d93b27f6d010b8856 /django/forms | |
| parent | 1f1a32928873a4e7cfe2f8f15631aa63df335490 (diff) | |
[1.7.x] Fixed #23451 -- Fixed typo in inlineformset_factory() error message.
Backport of f7eee04ebe from master
Diffstat (limited to 'django/forms')
| -rw-r--r-- | django/forms/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/models.py b/django/forms/models.py index 76f5bb8197..0f21a43655 100644 --- a/django/forms/models.py +++ b/django/forms/models.py @@ -950,7 +950,7 @@ def _get_foreign_key(parent_model, model, fk_name=None, can_fail=False): (fk.rel.to != parent_model and fk.rel.to not in parent_model._meta.get_parent_list()): raise ValueError( - "fk_name '%s' is not a ForeignKey to '%s.%'." + "fk_name '%s' is not a ForeignKey to '%s.%s'." % (fk_name, parent_model._meta.app_label, parent_model._meta.object_name)) elif len(fks_to_parent) == 0: raise ValueError( |
