This commit is contained in:
Johnson Chetty 2013-09-28 14:44:37 +02:00
commit 4b460e81f0

View File

@ -24,7 +24,7 @@ def splitSearch(string):
def get_real_ctype(module_name):
for c in ContentType.objects.filter(model=module_name):
try:
if c.model_class() is not None:
if c.model_class() is not None and isinstance(c.model_class(), ItfModel):
return c
except:
pass