Fixed error message in detail generic view.

Thanks go to mitar for the report and the patch.
This commit is contained in:
Florian Apolloner 2012-07-25 22:45:46 +02:00
parent 7d06f975fe
commit 4b5cb116e3
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class SingleObjectMixin(ContextMixin):
else: else:
raise ImproperlyConfigured("%(cls)s is missing a queryset. Define " raise ImproperlyConfigured("%(cls)s is missing a queryset. Define "
"%(cls)s.model, %(cls)s.queryset, or override " "%(cls)s.model, %(cls)s.queryset, or override "
"%(cls)s.get_object()." % { "%(cls)s.get_queryset()." % {
'cls': self.__class__.__name__ 'cls': self.__class__.__name__
}) })
return self.queryset._clone() return self.queryset._clone()