small fix
This commit is contained in:
parent
11d06b7b97
commit
dcea8b2a69
|
|
@ -286,5 +286,5 @@ class Carousel(models.Model):
|
|||
if isinstance(self.content_object, Establishment):
|
||||
return self.content_object.establishment_type.index_name
|
||||
elif isinstance(self.content_object, News):
|
||||
return self.content_object.model
|
||||
return self.content_type.model
|
||||
return None
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user