'str' object is not callable Django Rest Framework
https://www.py4u.net/discuss/1257750from rest_framework.views import APIView from rest_framework.response import Response from. import models from . import serializers class ListBrand ( APIView ): def get ( self, request, format = None ): brands = models.Brand.objects. all () serializer = serializers.BrandSerializer(brands, many= True ) data = serializer.data return Response(data)
'str' object is not callable Django Rest Framework
www.py4u.net › discuss › 1257750from rest_framework.views import APIView from rest_framework.response import Response from. import models from . import serializers class ListBrand ( APIView ): def get ( self, request, format = None ): brands = models.Brand.objects. all () serializer = serializers.BrandSerializer(brands, many= True ) data = serializer.data return Response(data)