コード例 #1
0
    def rank(self, request):
        data = request.POST.copy()
        data['rank'] = Ads.get_rank(request.POST)

        return Response(data)
コード例 #2
0
def show_ads(context, category=None):
    ads = Ads.get_ads(context.request, category)

    # update the log
    Ads.update_log_bulk(ads, context.request)
    return {'ads': ads}