Commit 312d2f3e authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

Fixed #15508 -- Corrected a misleading error message in the DetailView generic...

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
parent 0a9b5d7a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ class SingleObjectMixin(object):
        # 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: