Browse Source

Ajusta alguns detalhes e cria botão de acesso a pesquisa

pull/980/head
Eduardo Calil 9 years ago
committed by Edward Ribeiro
parent
commit
e72efc0af3
  1. 1
      sapl/base/search_indexes.py
  2. 6
      sapl/templates/search/search.html

1
sapl/base/search_indexes.py

@ -16,7 +16,6 @@ class DocumentoAcessorioIndex(indexes.SearchIndex, indexes.Indexable):
return self.model return self.model
def index_queryset(self, using=None): def index_queryset(self, using=None):
"""Used when the entire index for model is updated."""
return self.get_model().objects.all() return self.get_model().objects.all()
def prepare(self, obj): def prepare(self, obj):

6
sapl/templates/search/search.html

@ -63,7 +63,11 @@
</tr> </tr>
{% empty %} {% empty %}
<h3> Nenhum resultado encontrado! </h3> <h3> Nenhum texto encontrado! </h3>
<tr>
<td>
</td>
</tr>
{% endfor %} {% endfor %}
</table> </table>

Loading…
Cancel
Save