Explorar el Código

feat :star: allow sorting users using their order count

master
Samar Hassan hace 2 años
padre
commit
baa258e730
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/oscar/apps/dashboard/users/tables.py

+ 1
- 1
src/oscar/apps/dashboard/users/tables.py Ver fichero

@@ -18,7 +18,7 @@ class UserTable(DashboardTable):
18 18
     staff = Column(accessor='is_staff')
19 19
     date_registered = Column(accessor='date_joined')
20 20
     num_orders = Column(accessor='userrecord__num_orders', default=0,
21
-                        orderable=False, verbose_name=_('Number of Orders'))
21
+                        verbose_name=_('Number of Orders'))
22 22
     actions = TemplateColumn(
23 23
         template_name='oscar/dashboard/users/user_row_actions.html',
24 24
         verbose_name=' ')

Loading…
Cancelar
Guardar