{% extends "base.html" %} {% block title %} Delete Article {% endblock %} {% block content %}

Delete article


{% if user.is_authenticated %} {% if user.is_active %} {% ifequal article.user user %} Do you really want to delete article {{ article.title }}{% if comments %} and all comments bounded to it{% endif %}?
{% csrf_token %}
{% else %} Only user wroted the article can delete it {% endifequal %} {% else %} You are not an active user {% endif %} {% endif %}
{% endblock %}