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

Edit article


{% if user.is_authenticated %} {% ifequal article.user user %} {% if user.is_active %}
{% csrf_token %} {{ form.as_p }}
{% else %} You are not an active user {% endif %} {% else %} Only user wroted the article can edit it {% endifequal %} {% else %} You should log in to edit articles {% endif %}
{% endblock %}