From 51ed1ef1d56b383210830f69594b789ab3457b95 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sun, 22 Sep 2013 14:36:53 +0200 Subject: [PATCH] Fixed a mistake in my previous commit. --- django/shortcuts/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__