1
This commit is contained in:
1 parent
3120090399
commit
636bd12043
5 files changed
+15
-8
No files matched your search
@@ -5,6 +5,7 @@ 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)
|
||||
Reference in new issue
Block a user