описание

This commit is contained in:
iriska-gri committed 2024-03-18 14:20:06 +03:00
1 parent be880402ea
commit 3b9e647ddc
1115 files changed
+90 -931

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)