total number of keys - {{number.all_number}}
total number of activated keys - {{number.act_number}}
total number of non-activated keys - {{number.not_act_number}}

{% for i in page_obj %} {% endfor %}
Number
Activate Date
valid until
Deactivate
{{i.key}} {{i.date_act}} {{i.activate}} {% if i.activate == "not activated" %}
Deactivated
{% else %}
{% endif %}
{% if "all_keys" in request.get_full_path %} {% elif "deact_keys" in request.get_full_path %} {% elif "act_keys" in request.get_full_path %} {% else %} {% endif %}