Пример #1
0
 def get(self, request, id):
     abu = team.objects.filter(id=id)
     serializer = serviceSerializer(abu, many=True)
     return Response(serializer.data)
Пример #2
0
 def get(self, request):
     abu = team.objects.all()
     serializer = serviceSerializer(abu, many=True)
     return Response(serializer.data)
Пример #3
0
 def get(self, request):
     pro = promotions.objects.all()
     serializer = serviceSerializer(pro, many=True)
     return Response(serializer.data)
Пример #4
0
 def get(self, request, id):
     pro = promotions.objects.filter(id=id)
     serializer = serviceSerializer(pro, many=True)
     return Response(serializer.data)
Пример #5
0
 def get(self, request):
     ser = service.objects.all()
     serializer = serviceSerializer(ser, many=True)
     return Response(serializer.data)