1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Fixed #20761 -- Reworded ForeignKey default error message

This commit is contained in:
ersran9 2013-07-23 23:02:09 +05:30 committed by Claude Paroz
parent ad98b985aa
commit 311c1d2848

View File

@ -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)")