feat(evaluation): baholash modellari yaratildi (auto, ko'chmas mulk, ko'char mulk, tezkor, hisobot)
This commit is contained in:
39
core/apps/evaluation/serializers/report/EvaluationReport.py
Normal file
39
core/apps/evaluation/serializers/report/EvaluationReport.py
Normal file
@@ -0,0 +1,39 @@
|
||||
from rest_framework import serializers
|
||||
|
||||
from core.apps.evaluation.models import EvaluationReportModel
|
||||
|
||||
|
||||
class BaseEvaluationreportSerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = EvaluationReportModel
|
||||
fields = [
|
||||
"id",
|
||||
"valuation",
|
||||
"evaluator",
|
||||
"report_number",
|
||||
"final_value",
|
||||
"report_file",
|
||||
"conclusion_text",
|
||||
"approved_at",
|
||||
]
|
||||
|
||||
|
||||
class ListEvaluationreportSerializer(BaseEvaluationreportSerializer):
|
||||
class Meta(BaseEvaluationreportSerializer.Meta): ...
|
||||
|
||||
|
||||
class RetrieveEvaluationreportSerializer(BaseEvaluationreportSerializer):
|
||||
class Meta(BaseEvaluationreportSerializer.Meta): ...
|
||||
|
||||
|
||||
class CreateEvaluationreportSerializer(BaseEvaluationreportSerializer):
|
||||
class Meta(BaseEvaluationreportSerializer.Meta):
|
||||
fields = [
|
||||
"id",
|
||||
"valuation",
|
||||
"evaluator",
|
||||
"report_number",
|
||||
"final_value",
|
||||
"report_file",
|
||||
"conclusion_text",
|
||||
]
|
||||
1
core/apps/evaluation/serializers/report/__init__.py
Normal file
1
core/apps/evaluation/serializers/report/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from .EvaluationReport import * # noqa
|
||||
Reference in New Issue
Block a user