28 lines
692 B
Python
28 lines
692 B
Python
from rest_framework import serializers
|
|
|
|
from core.apps.documents.models import ExecutorInfoModel
|
|
|
|
|
|
class ExecutorInfoSerializer(serializers.ModelSerializer):
|
|
class Meta:
|
|
model = ExecutorInfoModel
|
|
fields = [
|
|
"id",
|
|
"name",
|
|
"address",
|
|
"account_number",
|
|
"tin",
|
|
"bank",
|
|
"mfo",
|
|
"oked",
|
|
"email",
|
|
"phone",
|
|
"evaluator_full_name",
|
|
"evaluator_certificate",
|
|
"license_info",
|
|
"insurance_info",
|
|
"created_at",
|
|
"updated_at",
|
|
]
|
|
read_only_fields = ["id", "created_at", "updated_at"]
|