From 003161a2165ee10a1283ce1ca53ea5c45ce7f976 Mon Sep 17 00:00:00 2001 From: Sanjay B Date: Sat, 28 Sep 2013 18:14:19 +0530 Subject: [PATCH] try again --- itf/app/models.py | 2 +- itf/templates/noel/render_object.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/itf/app/models.py b/itf/app/models.py index ab7c3a7..f1c544a 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 and isinstance(c.model_class(), ItfModel): + if c.model_class() is not None and c.is_itf_model: return c except: pass diff --git a/itf/templates/noel/render_object.html b/itf/templates/noel/render_object.html index 7538a20..cf3a97b 100755 --- a/itf/templates/noel/render_object.html +++ b/itf/templates/noel/render_object.html @@ -171,7 +171,7 @@ {% for l in object_list.items %} -
  • {{ l.title }}
  • +
  • {{ l.title }}
  • {% endfor %}