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

This commit is contained in:
iriska-gri committed 2023-12-05 13:14:41 +03:00
1 parent e7a1f70f19
commit 6ce2344735
4 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)