sort warranties by customer

This commit is contained in:
Andreas Zweili 2020-02-16 22:10:37 +01:00
parent 99ae403b75
commit fc37a1f115
1 changed files with 1 additions and 1 deletions

View File

@ -58,6 +58,6 @@ def connected_devices_table_view(request, pk):
@login_required
@superuser_required
def warranties_view(request):
table = WarrantiesTable(Warranty.objects.all())
table = WarrantiesTable(Warranty.objects.all().order_by('customer'))
RequestConfig(request).configure(table)
return render(request, 'devices/warranties_list.html', {'devices': table})