Compare commits
3 Commits
6eed2d998e
...
b0b4ccfeee
| Author | SHA1 | Date | |
|---|---|---|---|
| b0b4ccfeee | |||
|
|
ccefe9c119 | ||
|
|
6456283f72 |
@@ -0,0 +1,22 @@
|
|||||||
|
# Generated by Django 6.0.4 on 2026-04-23 13:42
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('evaluation', '0033_merge_20260423_1622'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RemoveField(
|
||||||
|
model_name='certificatemodel',
|
||||||
|
name='file_url',
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='certificatemodel',
|
||||||
|
name='file',
|
||||||
|
field=models.FileField(blank=True, null=True, upload_to='certificates/', verbose_name='file'),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -7,7 +7,7 @@ from core.apps.evaluation.serializers.certificate import BaseCertificateSerializ
|
|||||||
from rest_framework.filters import SearchFilter
|
from rest_framework.filters import SearchFilter
|
||||||
from rest_framework.parsers import MultiPartParser, FormParser
|
from rest_framework.parsers import MultiPartParser, FormParser
|
||||||
|
|
||||||
@extend_schema(tags=["Certificate"])
|
@extend_schema(tags=["Certificate"],request=BaseCertificateSerializer)
|
||||||
class CertificateView(BaseViewSetMixin, ModelViewSet):
|
class CertificateView(BaseViewSetMixin, ModelViewSet):
|
||||||
queryset = CertificateModel.objects.all()
|
queryset = CertificateModel.objects.all()
|
||||||
serializer_class = BaseCertificateSerializer
|
serializer_class = BaseCertificateSerializer
|
||||||
|
|||||||
Reference in New Issue
Block a user