29 lines
860 B
Python
29 lines
860 B
Python
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",
|
|
]
|