From 41fd5a482c4188168a45530e66679754f5c7be39 Mon Sep 17 00:00:00 2001 From: Sanjay B Date: Sat, 28 Sep 2013 18:27:57 +0530 Subject: [PATCH] oops --- 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 7ded294..df28a8a 100755 --- a/itf/app/models.py +++ b/itf/app/models.py @@ -206,7 +206,7 @@ class ItfModel(models.Model): Get the insidepages.models.ModelExtra object associated with this model ''' def get_modelextra(self): - ctype = get_content_type() + ctype = self.get_content_type() # 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).