diff --git a/attract/modules.py b/attract/modules.py index 66a63fe..0965e0f 100644 --- a/attract/modules.py +++ b/attract/modules.py @@ -60,6 +60,12 @@ def attract_project_view(extra_project_projections=None, extension_props=False): def decorator(wrapped): @functools.wraps(wrapped) def wrapper(project_url, *args, **kwargs): + if isinstance(project_url, pillarsdk.Resource): + # This is already a resource, so this call probably is from one + # view to another. Assume the caller knows what he's doing and + # just pass everything along. + return wrapped(project_url, *args, **kwargs) + api = pillar_api() project = pillarsdk.Project.find_by_url(