Implement named URL feature.

This commit is contained in:
Aaron Tan
2017-03-02 11:27:52 -05:00
parent 903e3076aa
commit f25391fe86
15 changed files with 944 additions and 6 deletions

View File

@@ -257,6 +257,7 @@ class GenericAPIView(generics.GenericAPIView, APIView):
})
d['serializer_fields'] = self.metadata_class().get_serializer_info(self.get_serializer())
d['settings'] = settings
d['has_named_url'] = self.model in settings.NAMED_URL_GRAPH
return d