From 311c1d2848bde59bf03627e5c3d72b319285201b Mon Sep 17 00:00:00 2001 From: ersran9 Date: Tue, 23 Jul 2013 23:02:09 +0530 Subject: [PATCH] Fixed #20761 -- Reworded ForeignKey default error message --- django/db/models/fields/related.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/models/fields/related.py b/django/db/models/fields/related.py index e7683c6aec..11a20983eb 100644 --- a/django/db/models/fields/related.py +++ b/django/db/models/fields/related.py @@ -1125,7 +1125,7 @@ class ForeignObject(RelatedField): class ForeignKey(ForeignObject): empty_strings_allowed = False default_error_messages = { - 'invalid': _('Model %(model)s with pk %(pk)r does not exist.') + 'invalid': _('%(model)s instance with pk %(pk)r does not exist.') } description = _("Foreign Key (type determined by related field)")