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:23 -0400 |
| commit | f7eee04ebe32277d2f3d7860abfb9a22c6ccf19d (patch) | |
| tree | 4708f0eb67509029caf939370745811fbf606cc8 /django | |
| parent | b161c01c48b4c353d7d1a47e9097391a8eb2e047 (diff) | |
Fixed #23451 -- Fixed typo in inlineformset_factory() error message.
Diffstat (limited to 'django')
| -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 0760f9d540..b23d815775 100644 --- a/django/forms/models.py +++ b/django/forms/models.py @@ -949,7 +949,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( |
