feat(evaluation): baholash modellari yaratildi (auto, ko'chmas mulk, ko'char mulk, tezkor, hisobot)
This commit is contained in:
@@ -3,5 +3,6 @@ from .customer import * # noqa
|
||||
from .movable import * # noqa
|
||||
from .quick import * # noqa
|
||||
from .real_estate import * # noqa
|
||||
from .report import * # noqa
|
||||
from .valuation import * # noqa
|
||||
from .vehicle import * # noqa
|
||||
|
||||
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