Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Delete columns 'number of orders' and 'last order' from customer list
michalc8a98b73d1d6
diff --git a/saleor/dashboard/customer/filters.py b/saleor/dashboard/customer/filters.pyindex 512834b0da..a46e6e267e 100644--- a/saleor/dashboard/customer/filters.py+++ b/saleor/dashboard/customer/filters.py@@ -49,10 +49,6 @@ class CustomerFilter(FilterSet):location = CharFilter(label=pgettext_lazy('Customer list sorting filter', 'Location'),method=filter_by_location)- num_orders = RangeFilter(- label=pgettext_lazy(- 'Customer list sorting filter', 'Number of orders'),- name='num_orders')is_active = ChoiceFilter(label=pgettext_lazy('Customer list is published filter label', 'Is active'),diff --git a/saleor/dashboard/order/filters.py b/saleor/dashboard/order/filters.pyindex 7e317099a1..4a1b2909c1 100644--- a/saleor/dashboard/order/filters.py+++ b/saleor/dashboard/order/filters.py@@ -48,7 +48,7 @@ class OrderFilter(FilterSet):widget=forms.Select)name_or_email = CharFilter(label=pgettext_lazy(- 'Customer name or email filter label', 'Name or email'),+ 'Customer name or email filter label', 'Customer name or email'),method=filter_by_customer)sort_by = OrderingFilter(label=pgettext_lazy('Order list sorting filter label', 'Sort by'),diff --git a/templates/dashboard/customer/list.html b/templates/dashboard/customer/list.htmlindex cfa25488f1..78727bd68d 100644--- a/templates/dashboard/customer/list.html+++ b/templates/dashboard/customer/list.html@@ -45,16 +45,6 @@{% trans "Location" context "Customers table header" %}</a></th>- <th class="right-align">- <a href="{% get_sort_by_url_toggle 'num_orders' %}">- {% trans "Number of orders" context "Customers table header" %}- </a>- </th>- <th>- <a href="{% get_sort_by_url_toggle 'last_order' %}">- {% trans "Last order" context "Customers table header" %}- </a>- </th></tr></thead><tbody>@@ -75,18 +65,6 @@<td colspan="2"></td>{% endif %}{% endwith %}- <td class="right-align">- {{ customer.num_orders }}- </td>- <td class="ignore-link">- {% if customer.last_order %}- <a href="{% url 'dashboard:order-details' order_pk=customer.last_order %}">- {% blocktrans with last_order=customer.last_order trimmed context "Customers table last order data" %}- #{{ last_order }}- {% endblocktrans %}- </a>- {% endif %}- </td></tr>{% endfor %}</tbody>