merged
This commit is contained in:
commit
4b460e81f0
|
@ -24,7 +24,7 @@ def splitSearch(string):
|
||||||
def get_real_ctype(module_name):
|
def get_real_ctype(module_name):
|
||||||
for c in ContentType.objects.filter(model=module_name):
|
for c in ContentType.objects.filter(model=module_name):
|
||||||
try:
|
try:
|
||||||
if c.model_class() is not None:
|
if c.model_class() is not None and isinstance(c.model_class(), ItfModel):
|
||||||
return c
|
return c
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue
Block a user