(self, request, pk=None)
return RestResponse(serializer.data)
get:
        Retrieve asset instance and all related database objects details.
get:
        Retrieve asset instance and all related database objects details.
get : Retrieve asset instance and all related database objects details .
def detailed(self, request, pk=None):
        """
        get:
        Retrieve asset instance and all related database objects details.
        """
        asset = AssetInstance.objects.filter(Q(owner=request.user) | Q(collaborations__in=request.user.groups.all()))
        serializer = AssetDetailSerializer(asset, many=True, context={'request': request})
        return RestResponse(serializer.data)
def detailed ( self , request , pk = None ) : asset = AssetInstance . objects . filter ( Q ( owner = request . user ) | Q ( collaborations__in = request . user . groups . all ( ) ) ) serializer = AssetDetailSerializer ( asset , many = True , context = { 'request' : request } ) return RestResponse ( serializer . data )