From 827dc3652d6ef632d0b5dc3a975ee97982ada409 Mon Sep 17 00:00:00 2001 From: Brian Park Date: Fri, 17 Nov 2023 15:37:44 -0800 Subject: [PATCH] added get_object_or_404 --- backend/vehicle/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/vehicle/views.py b/backend/vehicle/views.py index a65d30d..ab62079 100644 --- a/backend/vehicle/views.py +++ b/backend/vehicle/views.py @@ -3,6 +3,7 @@ from rest_framework import generics, status from rest_framework.response import Response from rest_framework.views import APIView +from rest_framework.generics import get_object_or_404 from .models import ( Brand, Equipment, Supplier, Trailer, Type, UnitImage, Vehicle)