Move revoked devices to the bottom in the list of devices

This commit is contained in:
Raphael Michel
2019-12-19 09:22:42 +01:00
parent 4db56e218e
commit 614c40596f

View File

@@ -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):