diff --git a/articles/templates/admin/articles/article/submit_line.html b/articles/templates/admin/articles/article/submit_line.html new file mode 100644 index 0000000..c3cbe7b --- /dev/null +++ b/articles/templates/admin/articles/article/submit_line.html @@ -0,0 +1,11 @@ +{% extends "admin/submit_line.html" %} +{% load i18n admin_urls %} +{% block submit-row %} + {{ block.super }} + {% if original.status != original.PUBLISHED %} + + {% elif original.status != original.DRAFT %} + + {% endif %} + +{% endblock %} diff --git a/articles/templates/articles/article_change_form.html b/articles/templates/articles/article_change_form.html index aeb1fcc..aa62019 100644 --- a/articles/templates/articles/article_change_form.html +++ b/articles/templates/articles/article_change_form.html @@ -1,17 +1,5 @@ {% extends 'admin/change_form.html' %} -{% block submit_buttons_bottom %} - {{ block.super }} -