merged
This commit is contained in:
commit
30916506af
|
@ -125,7 +125,7 @@ class ItfModel(models.Model):
|
|||
|
||||
def get_content_type(self):
|
||||
for c in ContentType.objects.filter(model=self.__class__._meta.module_name):
|
||||
if c.model_class() is not None:
|
||||
if c.model_class() is not None and isinstance(c.model_class(), ItfModel):
|
||||
return c
|
||||
raise
|
||||
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
<p>
|
||||
{% for result in page.object_list %}
|
||||
|
||||
|
||||
<a href="{{ result.object.get_absolute_url }}&search={{ query }}">{{ result.object }}</a>
|
||||
{{ result.text|truncatewords:60|markdown|striptags }}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user