diff --git a/funnel/models/helpers.py b/funnel/models/helpers.py index d7d36a080..a9f610faa 100644 --- a/funnel/models/helpers.py +++ b/funnel/models/helpers.py @@ -65,6 +65,7 @@ 'brand', 'brands', 'by', + 'calendar', 'client', 'clients', 'comments', diff --git a/funnel/views/profile.py b/funnel/views/profile.py index 4fc67ad8b..feedc8b22 100644 --- a/funnel/views/profile.py +++ b/funnel/views/profile.py @@ -243,7 +243,7 @@ def view(self) -> ReturnRenderWith: return ctx - @route('calendar', endpoint='calendar') + @route('calendar') @requestargs(('start', parse_isoformat), ('end', parse_isoformat)) @render_with( { @@ -291,7 +291,7 @@ def calendar( } for p in filtered_projects ] - return {'profile': self.obj, 'projects': projects} + return {'profile': self.obj.current_access(), 'projects': projects} @route('in/projects') @render_with('user_profile_projects.html.jinja2', json=True)