def count_callbacks(): data = CallBacks.objects.filter(read=False).count() return {'data': data } we have a template tag, how to display it in a template or not to display it with logic
{% if count_callbacks != 0 %} Count = {% count_callbacks %} {% endif %} Thank!