@json_view(content_type="application/json", permission='auction', validators=(validate_tender_auction_data))
    def collection_post(self):
        apply_patch(self.request, save=False, src=self.request.validated['tender_src'])
        if all([i.auctionPeriod and i.auctionPeriod.endDate for i in self.request.validated['tender'].lots if i.numberOfBids > 1 and i.status == 'active']):
            add_next_award(self.request)
        if save_tender(self.request):
            self.LOGGER.info('Report auction results', extra=context_unpack(self.request, {'MESSAGE_ID': 'tender_auction_post'}))
            return {'data': self.request.validated['tender'].serialize(self.request.validated['tender'].status)}
Additional CSS classnames to add to whatever kind of object this is at output.
dataset/ETHPy150Open openprocurement/openprocurement.api/src/openprocurement/api/views/auction.py/TenderAuctionResource.collection_post--crossover with--dataset/ETHPy150Open torchbox/wagtail/wagtail/wagtailadmin/edit_handlers.py/EditHandler.classes