RealEstateEvaluationModel modeli qoshildi (Ko'chmas mulk (Real Estate) baholash modeli uchun quyidagicha nomlarni tavsiya qilaman:

)
This commit is contained in:
Husanjonazamov
2026-02-13 17:43:04 +05:00
parent e2e7c23987
commit 799b5e5cf1
30 changed files with 406 additions and 10 deletions

View File

@@ -0,0 +1,50 @@
from rest_framework import serializers
from core.apps.evaluation.models import RealEstateEvaluationModel
class BaseRealestateevaluationSerializer(serializers.ModelSerializer):
class Meta:
model = RealEstateEvaluationModel
fields = [
"id",
"valuation",
"property_type",
"address",
"cadastral_number",
"total_area",
"living_area",
"floor",
"total_floors",
"rooms_count",
"build_year",
"condition",
"has_renovation",
]
class ListRealestateevaluationSerializer(BaseRealestateevaluationSerializer):
class Meta(BaseRealestateevaluationSerializer.Meta): ...
class RetrieveRealestateevaluationSerializer(BaseRealestateevaluationSerializer):
class Meta(BaseRealestateevaluationSerializer.Meta): ...
class CreateRealestateevaluationSerializer(BaseRealestateevaluationSerializer):
class Meta(BaseRealestateevaluationSerializer.Meta):
fields = [
"id",
"valuation",
"property_type",
"address",
"cadastral_number",
"total_area",
"living_area",
"floor",
"total_floors",
"rooms_count",
"build_year",
"condition",
"has_renovation",
]

View File

@@ -0,0 +1 @@
from .RealEstateEvaluation import * # noqa