add new apis

This commit is contained in:
behruz-dev
2025-08-11 12:14:44 +05:00
parent c1405bbc8a
commit 66aab361ef
12 changed files with 591 additions and 6 deletions

View File

@@ -2,14 +2,17 @@ from django.db import transaction
from rest_framework import serializers
from core.apps.projects.models.project_estimate import EstimateProduct, EstimateWork, ProjectEstimate
from core.apps.projects.models.project_estimate import ProjectEstimate
from core.apps.projects.serializers.estimate_work import EstimateWorkListSerializer
class ProjectEstimateListSerializer(serializers.ModelSerializer):
estimate_works = EstimateWorkListSerializer(many=True)
class Meta:
model = ProjectEstimate
fields = [
'id', 'number', 'name'
'id', 'number', 'name', 'estimate_works'
]