def post_or_get(request, key, fallback=None):
    """
    Returns request param from GET and POST if available, fallback otherwise.

    Precedence is POST, GET, then fallback if not found.
    """
    return request.POST.get(key, request.GET.get(key, fallback))