Compare commits

..

No commits in common. "e2129cc799342d58380ebf874c0559f81e6cac07" and "0b2b7f2fa25e5e06e4638a871b021ee2e3ca1920" have entirely different histories.

1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ class VehicleUseViewSet(CustomModelViewSet):
def add_info_for_list(self, data):
vehicle_ids = [d["id"] for d in data]
slots = VehicleSlot.objects.filter(vehicle_use__in=vehicle_ids).order_by("vehreg", "vehicle_use", "vdate", "slot")
slots = VehicleSlot.objects.filter(vehicle__in=vehicle_ids).order_by("vehreg", "vehicle_use", "vdate", "slot")
vehicle_info = {}
for slot in slots:
vehicle_id = slot.vehicle_use.id