Fixed a mistake in my previous commit.
This commit is contained in:
parent
a5b062576b
commit
51ed1ef1d5
|
@ -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__
|
||||||
|
|
Loading…
Reference in New Issue