MCPcopy Index your code
hub / github.com/encode/django-rest-framework / retrieve

Method retrieve

rest_framework/mixins.py:53–56  ·  view source on GitHub ↗
(self, request, *args, **kwargs)

Source from the content-addressed store, hash-verified

51 Retrieve a model instance.
52 """
53 def retrieve(self, request, *args, **kwargs):
54 instance = self.get_object()
55 serializer = self.get_serializer(instance)
56 return Response(serializer.data)
57
58
59class UpdateModelMixin:

Callers 4

getMethod · 0.45
getMethod · 0.45
getMethod · 0.45
getMethod · 0.45

Calls 3

ResponseClass · 0.90
get_objectMethod · 0.45
get_serializerMethod · 0.45

Tested by

no test coverage detected