Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed error message in detail generic view.

Thanks go to mitar for the report and the patch.
  • Loading branch information...
commit 4b5cb116e30020c459ad8c9314ae9311b461beb5 1 parent 7d06f97
@apollo13 apollo13 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/views/generic/detail.py
View
2  django/views/generic/detail.py
@@ -66,7 +66,7 @@ def get_queryset(self):
else:
raise ImproperlyConfigured("%(cls)s is missing a queryset. Define "
"%(cls)s.model, %(cls)s.queryset, or override "
- "%(cls)s.get_object()." % {
+ "%(cls)s.get_queryset()." % {
'cls': self.__class__.__name__
})
return self.queryset._clone()
Please sign in to comment.
Something went wrong with that request. Please try again.