Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

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

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15652 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 312d2f3edd9cf25a76822da52e0725c26dcf051b 1 parent 0a9b5d7
@freakboy3742 freakboy3742 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/views/generic/detail.py
View
2  django/views/generic/detail.py
@@ -42,7 +42,7 @@ def get_object(self, queryset=None):
# If none of those are defined, it's an error.
else:
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__)
try:
Please sign in to comment.
Something went wrong with that request. Please try again.