fix condition...

This commit is contained in:
2022-05-04 14:35:47 +00:00
parent 2cca4d99c0
commit f939510974

View File

@@ -28,11 +28,11 @@ class PostIndex(indexes.SearchIndex, indexes.Indexable):
return obj.event_start.date() return obj.event_start.date()
def prepare_agenda(self, obj): def prepare_agenda(self, obj):
if obj.has_agenda and not obj.agenda_html: if obj.has_agenda and obj.agenda_html:
return html2text(obj.agenda_html) return html2text(obj.agenda_html)
return None return None
def prepare_protocol(self, obj): def prepare_protocol(self, obj):
if obj.has_protocol and not obj.protocol_html: if obj.has_protocol and obj.protocol_html:
return html2text(obj.protocol_html) return html2text(obj.protocol_html)
return None return None