old_contents: from django.views.generic import View
  
  from nap.datamapper.models import ModelDataMapper
  from nap.rest import views
  
  from .models import Poll
  
  
  class PollMapper(ModelDataMapper):
      class Meta:
          model = Poll
          fields = ['question', 'pub_date']
  
  
  class SinglePollView(views.ObjectGetMixin, views.ObjectPutMixin, views.ObjectPatchMixin, views.ObjectDeleteMixin, views.ObjectMixin, View):
      model = Poll
      mapper_class = PollMapper
  
new_contents: from django.views.generic import View
  
  from nap.datamapper.models import ModelDataMapper
  from nap.rest import views
  
  from .models import Poll
  
  
  class PollMapper(ModelDataMapper):
      class Meta:
          model = Poll
          fields = ['question', 'pub_date']
  
  
  class SinglePollView(views.ObjectGetMixin, views.ObjectPutMixin, views.ObjectPatchMixin, views.ObjectDeleteMixin, views.BaseObjectView):
      model = Poll
      mapper_class = PollMapper
  
subject: Update test to use Base view