Browse files

Fixed #15508 -- Corrected a misleading error message in the DetailVie…

…w generic view. Thanks to varikin for the report.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 0a9b5d7 commit 312d2f3edd9cf25a76822da52e0725c26dcf051b @freakboy3742 freakboy3742 committed Feb 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/views/generic/
2 django/views/generic/
@@ -42,7 +42,7 @@ def get_object(self, queryset=None):
# If none of those are defined, it's an error.
raise AttributeError(u"Generic detail view %s must be called with "
- u"either an object id or a slug."
+ u"either an object pk or a slug."
% self.__class__.__name__)

0 comments on commit 312d2f3

Please sign in to comment.