Add Certificate model and write crud for it

This commit is contained in:
komoliddin
2026-04-23 16:07:37 +05:00
parent 320f490d23
commit 76563b3ef0
9 changed files with 86 additions and 0 deletions

View File

@@ -12,3 +12,4 @@ from .request import * # noqa
from .valuation import * # noqa
from .vehicle import * # noqa
from .tech_passport import * # noqa
from .certificate import * # noqa

View File

@@ -0,0 +1 @@
from .certificate import * # noqa

View File

@@ -0,0 +1,12 @@
from rest_framework import serializers
from core.apps.evaluation.models import CertificateModel
class BaseCertificateSerializer(serializers.ModelSerializer):
class Meta:
model = CertificateModel
fields = [
"id",
"title",
"file_url"
]