(view_fn, request, view_args, view_kwargs)
return _view_obj_is_safe(view_func, request, *view_args, **view_kwargs)
Check if view_fn had the @location_safe decorator applied.
    request, view_args and kwargs are also needed because view_fn alone doesn't always
    contain enough information
Check if view_fn had the
Check if view_fn had the
def is_location_safe(view_fn, request, view_args, view_kwargs):
    """
    Check if view_fn had the @location_safe decorator applied.
    request, view_args and kwargs are also needed because view_fn alone doesn't always
    contain enough information
    """
    # Tastypie
    if 'resource_name' in view_kwargs:
        return view_kwargs['resource_name'] in LOCATION_SAFE_TASTYPIE_RESOURCES

    view_func = get_view_func(view_fn, view_kwargs)
    return _view_obj_is_safe(view_func, request, *view_args, **view_kwargs)
def is_location_safe ( view_fn , request , view_args , view_kwargs ) : # Tastypie if 'resource_name' in view_kwargs : return view_kwargs [ 'resource_name' ] in LOCATION_SAFE_TASTYPIE_RESOURCES view_func = get_view_func ( view_fn , view_kwargs ) return _view_obj_is_safe ( view_func , request , * view_args , * * view_kwargs )