try and fix wrong links bug

This commit is contained in:
Sanjay B 2013-09-28 17:49:37 +05:30
parent 2825744369
commit 6965205f2c

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