0
내부에 나는 두 모델이 시리얼을 가지고 있지만 나는 하나 개의보기장고 레스트의 검색어 APIview
class ProductRequestView(APIView):
permission_classes = [IsAuthenticatedOrReadOnly]
def get(self, request):
city_serializer = CityCompactSerializer
models = ModelsNestedSerializer
data = {'cities':{'city data'},
'models': {'models data'}}
return Response(data, status=HTTP_200_OK)
내가 데이터를 얻기 위해 두 시리얼 라이저에의 검색어 통과해야 생각에 두 시리얼 라이저를 결합하려는. 이 관점에서 어떻게 할 수 있습니까? 나는 DRF를 처음 사용합니다. 도와 줘? 감사합니다.