def json_response(func):
    def inner(request, *args, **kwargs):
        ret = func(request, *args, **kwargs)
        return __prepare_json_ret(request, ret)
    return wraps(func)(inner)
Calculates a weight for mixing polls from multiple sources.
dataset/ETHPy150Open klipstein/dojango/dojango/decorators.py/json_response--crossover with--dataset/ETHPy150Open j3camero/canada-election-forecast/poll.py/Poll.CalculateRawWeight