try and fix wrong links bug
This commit is contained in:
parent
2825744369
commit
6965205f2c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user