Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #20761 -- Reworded ForeignKey default error message

  • Loading branch information...
commit 311c1d2848bde59bf03627e5c3d72b319285201b 1 parent ad98b98
ersran9 authored claudep committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/models/fields/related.py
View
2  django/db/models/fields/related.py
@@ -1125,7 +1125,7 @@ def contribute_to_related_class(self, cls, related):
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)")
Please sign in to comment.
Something went wrong with that request. Please try again.