From d9c84257d9b0cd3845ed6a4c9a98eed8c117a99d Mon Sep 17 00:00:00 2001 From: Shavkatjon Odamboyev <153182519+Shavkatjon-O@users.noreply.github.com> Date: Mon, 16 Sep 2024 01:02:26 +0500 Subject: [PATCH] fix --- apps/loans/api/LoansList/serializers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/loans/api/LoansList/serializers.py b/apps/loans/api/LoansList/serializers.py index cc91fa9..df49abd 100644 --- a/apps/loans/api/LoansList/serializers.py +++ b/apps/loans/api/LoansList/serializers.py @@ -1,8 +1,12 @@ from rest_framework import serializers from apps.loans.models import Loan +from apps.clients.api.ClientsDetail.serializers import ClientDetailSerializer + class LoansListSerializer(serializers.ModelSerializer): + client = ClientDetailSerializer() + class Meta: model = Loan fields = "__all__"