1
0
mirror of https://github.com/django/django.git synced 2024-12-27 11:35:53 +00:00

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

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()