custom template filter to check if list contains any non-empty element
in template: {% if not list|seeany %} list empty {% else %}
- list
- custom-template-tag
- custom-filters
in template: {% if not list|seeany %} list empty {% else %}
sterm is the search term. text is the result search text. it will highlight every matched search term in search result. please define your own .yellow css class. use: {{search_result_var|highlight:search_term}}
doniyor has posted 2 snippets.