          if self.include_format_suffixes:
              urls = format_suffix_patterns(urls)
  
          return urls
  
  
  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> remove from rest_framework.viewsets import ModelViewSet
 </s> add  </s> remove from django.db import models
 </s> add 
          if self.include_format_suffixes:
              urls = format_suffix_patterns(urls)
  
          return urls
























keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace
 Remove AutoRouter.  (Adding  shortcut to generic views/viewsets means it's unneccessary) 
rest_framework/routers.py