описание

This commit is contained in:
iriska-gri committed 2024-03-18 14:20:06 +03:00
1 parent cf1c4532fa
commit e041c0ef06
1000 files changed
+90 -571

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
from django.shortcuts import render
from rest_framework.generics import ListAPIView
from .models import *
from rest_framework.response import Response
from .serializers import *
class CaorusAPIView(ListAPIView):
def get(self, request):
queryset = Carousels.objects.using('add_base').all().order_by('order')
return Response(CarouselsSerializer(queryset, many=True).data)