I am aware of https://github.com/chibisov/drf-extensions, but the assembly failed.
How should responses be cached for general views? For instance:
class PropertyList(generics.ListAPIView):
queryset = Property.objects.all().prefetch_related("photos")
serializer_class = PropertyListSerializer
filter_backends = (filters.DjangoFilterBackend,)
filter_fields = ('featured', 'state', 'price_cents','location', 'status')
ordering_fields = ('expiration_date',)
Is the implementation of the list method from ListModelMixin the only option?
source
share