diff --git a/django/shortcuts/__init__.py b/django/shortcuts/__init__.py index 3efdb784af..36fe032cf2 100644 --- a/django/shortcuts/__init__.py +++ b/django/shortcuts/__init__.py @@ -83,7 +83,7 @@ def _get_queryset(klass): elif isinstance(klass, ModelBase): manager = klass._default_manager else: - if isinstance(klass, type) + if isinstance(klass, type): klass__name = klass.__name__ else: klass__name = klass.__class__.__name__