mirror of
https://github.com/django/django.git
synced 2024-12-26 19:16:11 +00:00
Fixed error message in detail generic view.
Thanks go to mitar for the report and the patch.
This commit is contained in:
parent
7d06f975fe
commit
4b5cb116e3
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user