Галерея с переключением
This commit is contained in:
1 parent
395b0b9fe3
commit
319608f1a1
19 files changed
+67
-43
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user