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:
parent
0a9b5d7ade
commit
312d2f3edd
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue