From 614c40596f6b4bddeaf5334ae6fdac2a31cd5cf1 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Thu, 19 Dec 2019 09:22:42 +0100 Subject: [PATCH] Move revoked devices to the bottom in the list of devices --- src/pretix/control/views/organizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/control/views/organizer.py b/src/pretix/control/views/organizer.py index 0c5774fe9e..d5c405f4c6 100644 --- a/src/pretix/control/views/organizer.py +++ b/src/pretix/control/views/organizer.py @@ -689,7 +689,7 @@ class DeviceListView(OrganizerDetailViewMixin, OrganizerPermissionRequiredMixin, def get_queryset(self): return self.request.organizer.devices.prefetch_related( 'limit_events' - ).order_by('-device_id') + ).order_by('revoked', '-device_id') class DeviceCreateView(OrganizerDetailViewMixin, OrganizerPermissionRequiredMixin, CreateView):