ValuationDocumentModel
— bu arizaga biriktiriladigan hujjatlar va rasmlar uchun kerak
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from .auto import * # noqa
|
||||
from .customer import * # noqa
|
||||
from .document import * # noqa
|
||||
from .movable import * # noqa
|
||||
from .quick import * # noqa
|
||||
from .real_estate import * # noqa
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
from rest_framework import serializers
|
||||
|
||||
from core.apps.evaluation.models import ValuationDocumentModel
|
||||
|
||||
|
||||
class BaseValuationdocumentSerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = ValuationDocumentModel
|
||||
fields = [
|
||||
"id",
|
||||
"document_type",
|
||||
]
|
||||
|
||||
|
||||
class ListValuationdocumentSerializer(BaseValuationdocumentSerializer):
|
||||
class Meta(BaseValuationdocumentSerializer.Meta): ...
|
||||
|
||||
|
||||
class RetrieveValuationdocumentSerializer(BaseValuationdocumentSerializer):
|
||||
class Meta(BaseValuationdocumentSerializer.Meta): ...
|
||||
|
||||
|
||||
class CreateValuationdocumentSerializer(BaseValuationdocumentSerializer):
|
||||
class Meta(BaseValuationdocumentSerializer.Meta):
|
||||
fields = [
|
||||
"id",
|
||||
"document_type",
|
||||
]
|
||||
1
core/apps/evaluation/serializers/document/__init__.py
Normal file
1
core/apps/evaluation/serializers/document/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from .ValuationDocument import * # noqa
|
||||
Reference in New Issue
Block a user