  Generic views that provide commonly needed behaviour.
  """
  from __future__ import unicode_literals
  
  from django.db.models.query import QuerySet
  from django.core.paginator import Paginator, InvalidPage
  from django.http import Http404
  from django.shortcuts import get_object_or_404 as _get_object_or_404
  from django.utils.translation import ugettext as _
  from rest_framework import views, mixins
 
</s> remove from django.utils import timezone
 </s> add 
  Generic views that provide commonly needed behaviour.
  """
  from __future__ import unicode_literals
  

  from django.core.paginator import Paginator, InvalidPage
  from django.http import Http404
  from django.shortcuts import get_object_or_404 as _get_object_or_404
  from django.utils.translation import ugettext as _
  from rest_framework import views, mixins
keep keep keep keep replace keep keep keep keep keep
 Use six.text_type instead of str everywhere 
rest_framework/generics.py