Fix 'Number of orders' table header in dashboard customer list view.
+from django.utils.translation import gettext_lazy as _
+
from django_tables2 import A, Column, LinkColumn, TemplateColumn
from oscar.core.loading import get_class
@@ -16,7 +18,7 @@ class UserTable(DashboardTable):
active = Column(accessor='is_active')
staff = Column(accessor='is_staff')
date_registered = Column(accessor='date_joined')
- num_orders = Column(accessor='orders.count', orderable=False)
+ num_orders = Column(accessor='orders.count', orderable=False, verbose_name=_('Number of Orders'))
actions = TemplateColumn(
template_name='dashboard/users/user_row_actions.html',
verbose_name=' ')
