old_contents: # MIT License
  # Copyright (c) 2017 MassChallenge, Inc.
  
  from rest_framework.response import Response
  from rest_framework.views import APIView
  
  from impact.permissions import (
      V1APIPermissions,
  )
  from impact.v1.metadata import ImpactMetadata
  
  
  class BaseHistoryView(APIView):
      metadata_class = ImpactMetadata
  
      permission_classes = (
          V1APIPermissions,
      )
  
      def __init__(self, *args, **kwargs):
          super().__init__(*args, **kwargs)
  
      def get(self, request, pk):
          self.instance = self.model.objects.get(pk=pk)
          events = []
          for event_class in self.event_classes:
              events = events + event_class.events(self.instance)
          result = {
              "history": sorted([event.serialize() for event in events],
                                key=lambda e: e["datetime"])
          }
          return Response(result)
  
new_contents: # MIT License
  # Copyright (c) 2017 MassChallenge, Inc.
  
  from rest_framework.response import Response
  from rest_framework.views import APIView
  
  from impact.permissions import (
      V1APIPermissions,
  )
  from impact.v1.metadata import ImpactMetadata
  
  
  class BaseHistoryView(APIView):
      metadata_class = ImpactMetadata
  
      permission_classes = (
          V1APIPermissions,
      )
  
      def __init__(self, *args, **kwargs):
          super().__init__(*args, **kwargs)
  
      def get(self, request, pk):
          self.instance = self.model.objects.get(pk=pk)
          events = []
          for event_class in self.event_classes:
              events = events + event_class.events(self.instance)
          result = {
              "results": sorted([event.serialize() for event in events],
                                key=lambda e: e["datetime"])
          }
          return Response(result)
  
subject: Switch from "history" to "results" in the history API calls