On my Django backend I'm sending list of available TV channels. They are rarely changed so I'm creating another url that hashes all /Channels.object.all()/ channels' data to hash/checksum value so that client side just compares checksum/hash value and only update list of channels when there is a change.
I made a following function however hash value is different while data is still the same.
class ChannelViewCheck(APIView):
def get(self, request, format=None):
channels = Channel.objects.all()
return Response(hash(channels))