@json_view(permission='auction')
    def collection_get(self):
        if self.request.validated['tender_status'] != 'active.auction':
            self.request.errors.add('body', 'data', 'Can\'t get auction info in current ({}) tender status'.format(self.request.validated['tender_status']))
            self.request.errors.status = 403
            return
        return {'data': self.request.validated['tender'].serialize("auction_view")}
Turns an ordinary data item into a shared one.
dataset/ETHPy150Open openprocurement/openprocurement.api/src/openprocurement/api/views/auction.py/TenderAuctionResource.collection_get--crossover with--dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/shareddata.py/make_shared_result