(view)
return view
Decorator to apply to a view after making sure it's location-safe
    Supports view functions, class-based views, tastypie resources, and HQ reports.
    For classes, decorate the class, not the dispatch method.
Decorator to apply to a view after making sure it's location-safe
    Supports view functions, class-based views, tastypie resources, and HQ reports.
    For classes, decorate the class, not the dispatch method.
Decorator to apply to a view after making sure it s location - safe Supports view functions class - based views tastypie resources and HQ reports . For classes decorate the class not the dispatch method .
def location_safe(view):
    """Decorator to apply to a view after making sure it's location-safe
    Supports view functions, class-based views, tastypie resources, and HQ reports.
    For classes, decorate the class, not the dispatch method.
    """
    view.is_location_safe = True

    # tastypie resources
    if isinstance(view, type) and issubclass(view, Resource):
        LOCATION_SAFE_TASTYPIE_RESOURCES.add(view.Meta.resource_name)

    return view
def location_safe ( view ) : view . is_location_safe = True # tastypie resources if isinstance ( view , type ) and issubclass ( view , Resource ) : LOCATION_SAFE_TASTYPIE_RESOURCES . add ( view . Meta . resource_name ) return view