def get_request_params(what, request=None, **kwargs):
    """Returns requested argument value"""
    args = {'app_name': 1, 'model_name': 2, 'pk': 4}

    try:
        return kwargs.get(
            what, request.path.split('/')[
                args[what]] if request else None)
    except __HOLE__:
        pass


# Model and Form Helpers
dataset/ETHPy150Open faxad/ActivFlow/activflow/core/helpers.py/get_request_params