  from __future__ import unicode_literals
  
  from collections import namedtuple
  from django.conf.urls import url, patterns
  from django.db import models
  from rest_framework.decorators import api_view
  from rest_framework.response import Response
  from rest_framework.reverse import reverse
  from rest_framework.viewsets import ModelViewSet
  from rest_framework.urlpatterns import format_suffix_patterns
 
</s> remove from rest_framework.viewsets import ModelViewSet
 </s> add  </s> remove 

class AutoRouter(DefaultRouter):
    """
    A router class that doesn't require you to register any viewsets,
    but instead automatically creates routes for all installed models.

    Useful for quick and dirty prototyping.
    """
    def __init__(self):
        super(AutoRouter, self).__init__()
        for model in models.get_models():
            prefix = model._meta.verbose_name_plural.replace(' ', '_')
            basename = model._meta.object_name.lower()
            classname = model.__name__

            DynamicViewSet = type(
                classname,
                (ModelViewSet,),
                {}
            )
            DynamicViewSet.model = model

            self.register(prefix, DynamicViewSet, basename)
 </s> add 
  from __future__ import unicode_literals
  
  from collections import namedtuple
  from django.conf.urls import url, patterns

  from rest_framework.decorators import api_view
  from rest_framework.response import Response
  from rest_framework.reverse import reverse
  from rest_framework.viewsets import ModelViewSet
  from rest_framework.urlpatterns import format_suffix_patterns
keep keep keep keep replace keep keep keep keep keep
 Remove AutoRouter.  (Adding  shortcut to generic views/viewsets means it's unneccessary) 
rest_framework/routers.py