Browse Source

HOT-FIX: possível fix para erro de render no search index

pull/1117/head
Edward Ribeiro 8 years ago
parent
commit
fa724cffb7
  1. 4
      sapl/base/search_indexes.py

4
sapl/base/search_indexes.py

@ -54,8 +54,8 @@ class DocumentoAcessorioIndex(indexes.SearchIndex, indexes.Indexable):
# text field with *all* of our metadata visible for templating: # text field with *all* of our metadata visible for templating:
t = loader.select_template(( t = loader.select_template((
'search/indexes/' + self.template_name, )) 'search/indexes/' + self.template_name, ))
data['text'] = t.render(Context({'object': obj, data['text'] = t.render({'object': obj,
'extracted': extracted_data})) 'extracted': extracted_data})
return data return data

Loading…
Cancel
Save