Permalink
Browse files

Fixed error message in detail generic view.

Thanks go to mitar for the report and the patch.
  • Loading branch information...
1 parent 7d06f97 commit 4b5cb116e30020c459ad8c9314ae9311b461beb5 @apollo13 apollo13 committed Jul 25, 2012
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()

0 comments on commit 4b5cb11

Please sign in to comment.