movable-model qoshildi bu (Ko'char mulk) modeli to'liq va optimallashgan holda tayyor!
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
from rest_framework import serializers
|
||||
|
||||
from core.apps.evaluation.models import MovablePropertyEvaluationModel
|
||||
|
||||
|
||||
class BaseMovablepropertyevaluationSerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = MovablePropertyEvaluationModel
|
||||
fields = [
|
||||
"id",
|
||||
# "name",
|
||||
]
|
||||
|
||||
|
||||
class ListMovablepropertyevaluationSerializer(BaseMovablepropertyevaluationSerializer):
|
||||
class Meta(BaseMovablepropertyevaluationSerializer.Meta): ...
|
||||
|
||||
|
||||
class RetrieveMovablepropertyevaluationSerializer(BaseMovablepropertyevaluationSerializer):
|
||||
class Meta(BaseMovablepropertyevaluationSerializer.Meta): ...
|
||||
|
||||
|
||||
class CreateMovablepropertyevaluationSerializer(BaseMovablepropertyevaluationSerializer):
|
||||
class Meta(BaseMovablepropertyevaluationSerializer.Meta):
|
||||
fields = [
|
||||
"id",
|
||||
# "name",
|
||||
]
|
||||
1
core/apps/evaluation/serializers/movable/__init__.py
Normal file
1
core/apps/evaluation/serializers/movable/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from .MovablePropertyEvaluation import * # noqa
|
||||
Reference in New Issue
Block a user