          class APIRoot(views.APIView):
              _ignore_model_permissions = True
  
              def get(self, request, *args, **kwargs):
                  ret = {}
                  for key, url_name in api_root_dict.items():
                      try:
                          ret[key] = reverse(
                              url_name,
                              request=request,
 
</s> remove         api_root_dict = {}
 </s> add         api_root_dict = OrderedDict() </s> remove from collections import namedtuple
 </s> add from collections import namedtuple, OrderedDict
                ret = OrderedDict()
          class APIRoot(views.APIView):
              _ignore_model_permissions = True
  
              def get(self, request, *args, **kwargs):
                ret = OrderedDict()
                  for key, url_name in api_root_dict.items():
                      try:
                          ret[key] = reverse(
                              url_name,
                              request=request,
keep keep keep keep replace keep keep keep keep keep
 Maintain order of views on router for api root view. 
rest_framework/routers.py