try fixing ctypes
This commit is contained in:
parent
9a80c9f5b9
commit
15c926c266
|
@ -124,10 +124,11 @@ class ItfModel(models.Model):
|
||||||
return d
|
return d
|
||||||
|
|
||||||
def get_content_type(self):
|
def get_content_type(self):
|
||||||
for c in ContentType.objects.filter(model=self.__class__._meta.module_name):
|
return ContentType.objects.get_for_model(self.__class__)
|
||||||
if c.model_class() is not None and isinstance(c.model_class(), ItfModel):
|
# for c in ContentType.objects.filter(model=self.__class__._meta.module_name):
|
||||||
return c
|
# if c.model_class() is not None and isinstance(c.model_class(), ItfModel):
|
||||||
raise
|
# return c
|
||||||
|
# raise
|
||||||
|
|
||||||
def get_gallery_image(self):
|
def get_gallery_image(self):
|
||||||
from mediagallery.models import Photo
|
from mediagallery.models import Photo
|
||||||
|
|
Loading…
Reference in New Issue
Block a user