evaluation-customer modeli yaratildi va kerakli fiealdlr qoshildi
This commit is contained in:
27
core/apps/evaluation/serializers/customer/PropertyOwner.py
Normal file
27
core/apps/evaluation/serializers/customer/PropertyOwner.py
Normal file
@@ -0,0 +1,27 @@
|
||||
from rest_framework import serializers
|
||||
|
||||
from core.apps.evaluation.models import PropertyOwnerModel
|
||||
|
||||
|
||||
class BasePropertyOwnerSerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = PropertyOwnerModel
|
||||
fields = [
|
||||
"id",
|
||||
]
|
||||
|
||||
|
||||
class ListPropertyOwnerSerializer(BasePropertyOwnerSerializer):
|
||||
class Meta(BasePropertyOwnerSerializer.Meta): ...
|
||||
|
||||
|
||||
class RetrievePropertyOwnerSerializer(BasePropertyOwnerSerializer):
|
||||
class Meta(BasePropertyOwnerSerializer.Meta): ...
|
||||
|
||||
|
||||
class CreatePropertyOwnerSerializer(BasePropertyOwnerSerializer):
|
||||
class Meta(BasePropertyOwnerSerializer.Meta):
|
||||
fields = [
|
||||
"id",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user