mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +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
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ class SingleObjectMixin(ContextMixin):
|
|||
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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue