Fixed a mistake in my previous commit.

This commit is contained in:
Aymeric Augustin 2013-09-22 14:36:53 +02:00
parent a5b062576b
commit 51ed1ef1d5
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ def _get_queryset(klass):
elif isinstance(klass, ModelBase): elif isinstance(klass, ModelBase):
manager = klass._default_manager manager = klass._default_manager
else: else:
if isinstance(klass, type) if isinstance(klass, type):
klass__name = klass.__name__ klass__name = klass.__name__
else: else:
klass__name = klass.__class__.__name__ klass__name = klass.__class__.__name__