Галерея с переключением

This commit is contained in:
iriska-gri committed 2023-12-05 13:14:41 +03:00
1 parent 395b0b9fe3
commit 319608f1a1
19 files changed
+67 -43

No files matched your search

+2 -2
View File
@@ -26,8 +26,8 @@ class LinkAPIView(ListAPIView):
class GalleryAPIView(ListAPIView):
def get(self, request):
gal = Gallery.objects.filter(id=int(request.GET.get('id')))
gal = Gallery.objects.filter(id=int(request.GET.get('idimg')), news_id=int(request.GET.get('idnews')))
result = GallerySerializer(gal, many=True).data
return Response(result)