Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add clear filters link, remove irrelevant fields from VoucherFilter
michalf70e71121586
diff --git a/saleor/dashboard/discount/filters.py b/saleor/dashboard/discount/filters.pyindex 080f2df99a..385a299f4a 100644--- a/saleor/dashboard/discount/filters.py+++ b/saleor/dashboard/discount/filters.py@@ -43,5 +43,5 @@ class VoucherFilter(FilterSet):class Meta:model = Voucher- fields = ['name', 'discount_value_type', 'discount_value', 'apply_to',- 'start_date', 'end_date', 'used', 'limit']+ fields = ['discount_value_type', 'discount_value', 'apply_to',+ 'start_date', 'end_date', 'limit']diff --git a/templates/dashboard/_filters.html b/templates/dashboard/_filters.htmlindex b4f11a89f6..49b91997ff 100644--- a/templates/dashboard/_filters.html+++ b/templates/dashboard/_filters.html@@ -6,6 +6,9 @@<div class="card"><div class="card-content"><span class="card-title">{% trans 'Filters' context 'Dashboard card title' %}</span>+ <a href="?">+ <span class="clear-filters float-right">{% trans 'Clear filters' context 'Category page filters' %}</span>+ </a><form method="get">{% for field in filter.form %}<div class="col s4">