Fixed #15508 -- Corrected a misleading error message in the DetailView generic view. Thanks to varikin for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15652 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2011-02-26 05:37:35 +00:00
parent 0a9b5d7ade
commit 312d2f3edd
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class SingleObjectMixin(object):
# If none of those are defined, it's an error. # If none of those are defined, it's an error.
else: else:
raise AttributeError(u"Generic detail view %s must be called with " 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__) % self.__class__.__name__)
try: try: