Skip to content

Commit 2fde22f

Browse files
committed
Fix customer order list view email column ordering
1 parent 85a7381 commit 2fde22f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bakeup/workshop/tables.py

+2
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,13 @@ class CustomerTable(tables.Table):
232232
args=[A("pk")],
233233
text=lambda record: record.user.email,
234234
verbose_name=_("eMail"),
235+
order_by="user__email",
235236
)
236237
abos = tables.TemplateColumn(
237238
template_name="tables/customer_abos_column.html",
238239
verbose_name="Abos",
239240
exclude_from_export=True,
241+
orderable=False,
240242
)
241243
actions = tables.TemplateColumn(
242244
template_name="tables/customer_actions_column.html",

0 commit comments

Comments
 (0)