Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Display non field errors in sale form
Anna Siwik4c86f995b768
diff --git a/templates/dashboard/discount/sale/form.html b/templates/dashboard/discount/sale/form.htmlindex 888b47287e..c0ce785fe3 100644--- a/templates/dashboard/discount/sale/form.html+++ b/templates/dashboard/discount/sale/form.html@@ -69,6 +69,13 @@<form method="post" enctype="multipart/form-data" id="form-sales" novalidate><div class="card-content card-content-form">{% csrf_token %}+ {% if form.non_field_errors %}+ <blockquote>+ {% for non_field_error in form.non_field_errors %}+ {{ non_field_error }}+ {% endfor %}+ </blockquote>+ {% endif %}<div class="row">{{ form.name|materializecss }}</div>