Commits

Matthew Schinckel  committed c5360e2

Use an absolute URL for the href field in the root api index call

  • Participants
  • Parent commits 75e7567

Comments (0)

Files changed (1)

File rest_api/sites.py

                 if True in perms.values():
                     model_list.append({
                         'name':unicode(capfirst(model._meta.verbose_name_plural)),
-                        'href': '%s/' % model_api.root_path,
+                        'href': '%s%s/' % (request.path, model_api.root_path),
                         'perms': perms,
                     })
         model_list.sort(key=operator.itemgetter('name'))