I use the BannerListAPIView
when access the banner list:
class BannerListAPIView(ListAPIView):
serializer_class = WebsiteBannerSerializer
permission_classes = []
queryset = WebsiteBanner.objects.all()
But I want to add my logic when access this ListAPIView
, such as I want to record the remote_ip
.
How to add my logic when I access this ListAPIView
?
EDIT
I just want to know where I can add my custom logic when user access the ListAPIView
.