From 442b6dadd612d7c7c957bb81813cbd9125c79e2b Mon Sep 17 00:00:00 2001 From: Sanj Date: Sat, 10 Sep 2011 04:49:01 +0530 Subject: [PATCH] damn you _ --- 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 0a41946..b6a82b4 100644 --- a/itf/app/models.py +++ b/itf/app/models.py @@ -47,7 +47,7 @@ class ItfModel(models.Model): try: ctype = ContentType.objects.get(model=self.__class__._meta.module_name) except:#FIXME: ideally catch only MultipleObjectsReturned (figure out where to import that from :/ ) #FUCKING way ugly hack to get clashing model ctype names with django internal models working (get_real_ctypes simply checks, if there are multiple content objects with the same 'module_name', which one is_itf_model, and returns that). - ctype = get_real_ctype(self.__class__m.meta.module_name) + ctype = get_real_ctype(self.__class__._meta.module_name) modelextra = ModelExtra.objects.filter(model=ctype)[0] tab = ModuleTab.objects.filter(model=modelextra)[0]