From 6965205f2c8ee7a85f49bb313e793ff710bd84b0 Mon Sep 17 00:00:00 2001 From: Sanjay B Date: Sat, 28 Sep 2013 17:49:37 +0530 Subject: [PATCH] try and fix wrong links bug --- itf/app/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itf/app/models.py b/itf/app/models.py index c76d4e8..ab7c3a7 100755 --- a/itf/app/models.py +++ b/itf/app/models.py @@ -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