app/views/sanitize.py
def json_return(func):
    """
    Wraps the returned object in a HttpResponse after a json dump,
    returning that instead
    """
    @wraps(func)
    def wrapper(*args, **kwargs):
        data = func(*args, **kwargs)

        response = HttpResponse(content_type='application/json')
        simplejson.dump(data, response)
        return response
    return wrapper

    Wraps the returned object in a HttpResponse after a json dump,
    returning that instead
    
Wraps the returned object in a HttpResponse after a json dump,
returning that instead
Wraps the returned object in a HttpResponse after a json dump returning that instead
def json_return(func):
    @wraps(func)
    def wrapper(*args, **kwargs):
        data = func(*args, **kwargs)
        response = HttpResponse(content_type='application/json')
        simplejson.dump(data, response)
        return response
    return wrapper
def json_return ( func ) : @ wraps ( func ) def wrapper ( * args , ** kwargs ) : data = func ( * args , ** kwargs ) response = HttpResponse ( content_type = 'application/json' ) simplejson . dump ( data , response ) return response return wrapper
Wraps the returned object in a HttpResponse after a json dump,
returning that instead
Wraps the returned object in a HttpResponse after a json dump returning that instead
"""
    Wraps the returned object in a HttpResponse after a json dump,
    returning that instead
    """
func