Skip to content

Commit 37f1679

Browse files
committed
Fix ordering of customer dropdown
1 parent 6c15734 commit 37f1679

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bakeup/workshop/views.py

+1
Original file line numberDiff line numberDiff line change
@@ -1994,6 +1994,7 @@ def get_queryset(self):
19941994
Q(user__first_name__istartswith=self.q)
19951995
| Q(user__last_name__istartswith=self.q)
19961996
)
1997+
qs = qs.order_by(Lower("user__last_name"), Lower("user__first_name"))
19971998

19981999
return qs
19992000

0 commit comments

Comments
 (0)