def get_request_arg(request, key, default=None):
    """
    Get value from request POST or GET
    """
    if key in request.POST:
        return request.GET[key]
    if key in request.GET:
        return request.GET[key]
    return default
