{% if not has_permission('blog_post', 'update', instance) and not has_permission('blog_post', 'delete', instance) %} {% else %} [ {% include "blog_post/_action_edit.html" %} | {% include "blog_post/_action_delete.html" %} ] {% endif %}