Skip to content

Commit

Permalink
Make 'calendar' a reserved name
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed Apr 15, 2024
1 parent 782d512 commit 4b0728d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions funnel/models/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
'brand',
'brands',
'by',
'calendar',
'client',
'clients',
'comments',
Expand Down
4 changes: 2 additions & 2 deletions funnel/views/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
{
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 4b0728d

Please sign in to comment.